leaveGroupConversation

suspend fun leaveGroupConversation(    context: Context,     conversationId: Int,     timeout: Long = 10000): ApiResult<Boolean>

Call this method to leave 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 leave the given conversation, only if he does not belong to any group in that conversation (if exist).

Return

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

    Success : user has successfully left the conversation
    Error : a local error occurred when trying to send this request to the server

Parameters

context

The application context

conversationId

Conversation identifier

timeout