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