removeRegularAdmin

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

Call this method to remove a regular admin from the current group conversation, means the adminPhoneNumber will be a simple member

The given conversation should

  • be a group group conversation (THREAD_TYPE_GROUP).
  • exist and active.
  • not related to a MyBusiness process.
  • not an emergency conversation.

The given adminPhoneNumber should be present in the current group conversation as a regular admin

See also

Parameters

context

The application context

conversationId

Conversation ID.

adminPhoneNumber

The international phone number of the regular admin.

callback

This callback will be invoked to handle operation result :

  • Success : the remove admin request is successfully sent to the server
  • Error : a local error occurred when trying to send this request to the server