changeChatRoomName method Null safety
Changes the chat room name.
Only the chat room owner can call this method.
Param roomId
The chat room ID.
Param name
The new name of the chat room.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> changeChatRoomName(
String roomId,
String name,
) async {
Map req = {"roomId": roomId, "subject": name};
Map result =
await _channel.invokeMethod(ChatMethodKeys.changeChatRoomSubject, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}