updateChatThreadName method

Future<void> updateChatThreadName(
  1. {required String chatThreadId,
  2. required String newName}

Change Chat Thread name.

The group owner, group administrator and Thread creator have permission. After modifying chat thread name, members of the organization (group) to which chat thread belongs will receive the update notification event. You can set ChatThreadEventHandler.onChatThreadUpdate to listen on the event.

Param chatThreadId Chat Thread ID.

Param newName New Chat Thread name. No more than 64 characters in length.

Throws A description of the exception. See ChatError.


Future<void> updateChatThreadName({
  required String chatThreadId,
  required String newName,
}) async {
  Map req = {
    "name": newName,
    "threadId": chatThreadId,
  Map result = await _channel.invokeMethod(
  try {
  } on ChatError catch (e) {
    throw e;