changeGroupName

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

Call this method to change the conversation name for the given conversation to the newGroupName.

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

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

If the current conversation name equals to the newGroupName the operation will not executed.

The user must be a regular admin or an admin initiator to change the group name.

In a broadcast call group conversation, no recipient is able to change the group name.

A message will be sent in order to synchronize your WebChat account, and all recipients of the given conversation will be notified by updating the name of the conversation.

Return

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

    Success : the update of group conversation name request is successfully sent to the server.
    Error : a local error occurred when trying to send this
       request to the server

Parameters

context

The application context

conversationId

Group conversation id.

newConversationName

New group name