isMemberInAllowListFromServer method
- String groupId
Checks whether the current user is on the group allowlist.
Param groupId The group ID.
Returns True if the current user is in the allowlist, false otherwise.
Throws Exception description, see ChatError.
Implementation
Future<bool> isMemberInAllowListFromServer(String groupId) async {
try {
Map req = {'groupId': groupId};
Map result = await platform_interface.Client.instance.groupManager
.callNativeMethod(ChatMethodKeys.isMemberInWhiteListFromServer, req);
ChatError.hasErrorFromResult(result);
return result.boolValue(ChatMethodKeys.isMemberInWhiteListFromServer);
} catch (e) {
rethrow;
}
}