assign Admins To Conversation
suspend fun assignAdminsToConversation( context: Context, conversationId: Int, users: List<STWRecipientSingle>, timeout: Long = 10000): ApiResult<Boolean>
Content copied to clipboard
Call this method to assign a new member as an admin to the given group conversation
This method should be called only from a coroutine or another suspend function
The given conversation should be: .a group ConversationTypes.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.
Return
ApiResult This is the callback that 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 serverContent copied to clipboard
Parameters
context
The application context
conversation Id
Conversation identifier
phone Number List
A list of international phone numbers of the new admins.