removeUserFromGroupConversation

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

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

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

The user can remove a subscriber 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 removedInternationalNumber is not the admin initiator of this 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.

removedInternationalNumber

The removed user MSISDN

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 members from the conversation