removeGroupsFromConversation

suspend fun removeGroupsFromConversation(    context: Context,     conversationId: Int,     groups: List<STWRecipientGroup>,     timeout: Long = 10000): ApiResult<Boolean>

Call this method to remove a group from a group conversation.

This method should be called only from a coroutine or another suspend function

The given conversation should be a group conversation ConversationTypes.GROUP.

The user can remove a group from the given conversation, only if :

  • He is a regular admin or an admin initiator in the conversation.

  • The current conversation is exist and active.

  • The removed group list belongs to the conversation.

  • This conversation is not related to a MyBusiness process.

  • Not an emergency conversation.

Return

ApiResult This is the callback that will be invoked to handle operation result:

    Success : the groups were successfully removed from the conversationchangeG
    Error : a local error occurred when trying to send this
    request to the server

Parameters

context

The application context

conversationId

Conversation identifier

groups

list of group identifiers that will be removed

timeout