destroyChatRoom method
- String roomId
Destroys a chat room.
Only the chat room owner can call this method.
Param roomId The chat room ID.
Throws A description of the exception. See ChatError.
Implementation
Future<void> destroyChatRoom(
String roomId,
) async {
try {
Map req = {"roomId": roomId};
Map result = await platform_interface.Client.instance.chatRoomManager
.callNativeMethod(ChatMethodKeys.destroyChatRoom, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}