assignNewRegularAdmins

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

Call this method to assign a new list of members to be a regular admins 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 phoneNumberList should be present in the current group conversation as a simple members

See also

Parameters

context

The application context

conversationId

Conversation ID.

phoneNumberList

A list of an international phone number of the new regular admins.

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 assignNewRegularAdmins(    @NonNull context: Context,     @NonNull conversationId: String,     @NonNull phoneNumberList: List<String>,     leaveAfterAssign: Boolean,     @Nullable callback: STWOperationCallback<MessagingError>)

Call this method to assign a new list of members to be a regular admins 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 phoneNumberList should be present in the current group conversation as a simple members

See also

Parameters

context

The application context

conversationId

Conversation ID.

phoneNumberList

A list of an international phone number of the new regular admins.

leaveAfterAssign

Leave the conversation after successfully assign new regular admins

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