changeChatRoomDescription method

Future<void> changeChatRoomDescription(
  1. String roomId,
  2. String description
)

Modifies the chat room description.

Only the chat room owner can call this method.

Param roomId The chat room ID.

Param description The new description of the chat room.

Throws A description of the exception. See ChatError.

Implementation

Future<void> changeChatRoomDescription(
  String roomId,
  String description,
) async {
  try {
    Map req = {"roomId": roomId, "description": description};
    Map result = await platform_interface.Client.instance.chatRoomManager
        .callNativeMethod(ChatMethodKeys.changeChatRoomDescription, req);
    ChatError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}