changeChatRoomDescription method

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

修改聊天室描述信息。

仅聊天室所有者可调用此方法。

Param roomId 聊天室 ID。

Param description The new description of the chat room.

Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 EMError

Implementation

Future<void> changeChatRoomDescription(
  String roomId,
  String description,
) async {
  Map req = {"roomId": roomId, "description": description};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.changeChatRoomDescription, req);
  try {
    EMError.hasErrorFromResult(result);
  } on EMError catch (e) {
    throw e;
  }
}