isMemberInChatRoomAllowList method
- String roomId
Checks whether the member is on the allow list.
Param roomId
The chat room ID.
Return Whether the member is on the allow list.
true
: Yes;false
: No. Throws A description of the exception. See ChatError.
Implementation
Future<bool> isMemberInChatRoomAllowList(String roomId) async {
Map req = {"roomId": roomId};
Map result = await _channel.invokeMethod(
ChatMethodKeys.isMemberInChatRoomWhiteListFromServer, req);
try {
ChatError.hasErrorFromResult(result);
return result
.boolValue(ChatMethodKeys.isMemberInChatRoomWhiteListFromServer);
} on ChatError catch (e) {
throw e;
}
}