changeChatRoomDescription method Null safety
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 {@link 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;
}
}