leaveGroupConversation

open fun leaveGroupConversation(    @NonNull context: Context,     @NonNull conversationId: String,     @Nullable callback: STWOperationCallback<MessagingError>)

Call this method to leave a group conversation.

The given conversation should be a group group conversation (THREAD_TYPE_GROUP).

The user can leave the given conversation, only if he does not belong to any group in that conversation (if exist).

An event IConversationObservable will be delegated when the leave request is successfully done or failed.

See also

Parameters

context

The application context

conversationId

Conversation ID.

callback

This callback will be invoked to handle operation result :

  • Success : the leave conversation request is successfully sent to the server
  • Error : a local error occurred when trying to leave the conversation