changeChatRoomName method
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 ChatError.
Implementation
Future<void> changeChatRoomName(
String roomId,
String name,
) async {
Map req = {"roomId": roomId, "subject": name};
Map result =
await _channel.invokeMethod(ChatMethodKeys.changeChatRoomSubject, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}