removeChatRoomAdmin method
Removes privileges of a chat room admin.
Param roomId
The chat room ID.
Param admin
The ID of admin whose privileges are to be removed.
Throws A description of the exception. See ChatError.
Implementation
Future<void> removeChatRoomAdmin(
String roomId,
String admin,
) async {
Map req = {"roomId": roomId, "admin": admin};
Map result =
await _channel.invokeMethod(ChatMethodKeys.removeChatRoomAdmin, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}