Skip to main content

Adding members to a conversation

Through the WireApplicationManager you can add members to a conversation. Here is an example for both on the standalone way:

note

To add members, make sure the conversation is a group or channel, and that the app has admin permissions in the conversation.

Use Case: Add a member to a conversation

val applicationManager = wireAppSdk.getApplicationManager()

val myConversationId = QualifiedId(
id = UUID.fromString("conversation-id"),
domain = "conversation-domain.com"
)

val myListOfMembers = listOf(
QualifiedId(
id = UUID.fromString("member-user-id"),
domain = "member-domain.com"
)
)

applicationManager.addMembersToConversationSuspending(
conversationId = myConversationId,
members = myListOfMembers
)