remove Admin From Conversation
suspend fun removeAdminFromConversation( context: Context, conversationId: Int, users: List<STWRecipientSingle>, timeout: Long = 10000): ApiResult<Boolean>
Content copied to clipboard
Call this method to remove a regular admin from the current group conversation, means the adminPhoneNumber will be a simple member
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 adminPhoneNumber should be present in the current group conversation as a regular admin
Return
ApiResult This is the callback that will be invoked to handle operation result:
Success : the remove of regular 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 ID.
admin Phone Number
The international phone number of the regular admin.