removeGroupsFromConversation

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

Call this method to remove a group from a group conversation.

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

The user can remove a group from the given conversation, only if :

  • he is a regular admin or an admin initiator in the conversation.
  • the current conversation is exist and active.
  • the removed group list belongs to the conversation
  • this conversation is not related to a MyBusiness process.
  • not an emergency conversation.

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

Parameters

context

The application context

conversationId

Conversation ID.

groups

The removed group list

callback

This callback will be invoked to handle operation result :

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