changeChatRoomSubject method Null safety
- @Deprecated("Switch to using EMChatManager#changeChatRoomName instead.")
@Deprecated("Switch to using EMChatManager#changeChatRoomName instead.")
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
@Deprecated("Switch to using EMChatManager#changeChatRoomName instead.")
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;
}
}