Group

class Group(groupID: String, memberSubset: Collection<JsonAddress>) : Recipient

A group as the recipient, using the base64-encoded groupID as the identifier. groupIDs can be retrieved with listGroups or by reading the responses from joinGroup or getGroupLinkInfo.

If a memberSubset is non-empty, messages will only be sent to that subset. This is useful for handling message send failures for only certain members of the group (e.g. safety number changes).

Constructors

Link copied to clipboard
fun Group(groupID: String, memberSubset: Collection<JsonAddress> = emptyList())

Functions

Link copied to clipboard
fun withMemberSubset(memberSubset: Collection<JsonAddress>): Recipient.Group

Creates a copy of this Group with the same groupID but using the given memberSubset. This is useful for handling message send failures for only certain members of the group (e.g. safety number changes).

Properties

Link copied to clipboard
val groupID: String
Link copied to clipboard
val memberSubset: Collection<JsonAddress>