Skip to main content

Leaving conversations

Through the WireApplicationManager you can leave group conversations. Here is an example for both on the standalone way:

Use Case: Leave the latest group conversation

val applicationManager = wireAppSdk.getApplicationManager()
val latestConversation = applicationManager.getStoredConversations().last {
it.type == Conversation.Type.GROUP
}

applicationManager.leaveConversationSuspending(conversationId = latestConversation.id)