assignNewRegularAdmin

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

Call this method to assign a new member to be a regular admin in the current group conversation

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 phoneNumber should be present in the current group conversation as a simple member

See also

Parameters

context

The application context

conversationId

Conversation ID.

phoneNumber

The international phone number of the new regular admin.

callback

This callback will be invoked to handle operation result :

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

open fun assignNewRegularAdmin(    @NonNull context: Context,     @NonNull conversationId: String,     @NonNull phoneNumber: String,     leaveAfterAssign: Boolean,     @Nullable callback: STWOperationCallback<MessagingError>)

Call this method to assign a new member to be a regular admin in the current group conversation

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 phoneNumber should be present in the current group conversation as a simple member

See also

Parameters

context

The application context

conversationId

Conversation ID.

phoneNumber

The international phone number of the new regular admin.

leaveAfterAssign

Leave the conversation after successfully assign new regular admin

callback

This callback will be invoked to handle operation result :

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