changeGroupName

open fun changeGroupName(    @NonNull context: Context,     @NonNull conversationId: String,     @NonNull newGroupName: String,     @Nullable callback: STWOperationCallback<MessagingError>)

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

The given threadItem should be for a group conversation.

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.

An event in IConversationObservable will be delegated when the conversation name is successfully updated.

See also

Parameters

context

The application context

conversationId

Group conversation id.

newGroupName

New group name

callback

This callback will be invoked to handle operation result :

  • Success : the request is successfully sent to the server
  • Error : a local error occurred when trying to send the request to the server