removeMemberAttributes method
Removes group member custom attributes.
Param groupId Group ID
Param keys The keys of the attributes to be removed.
Param userId Target user ID to remove attributes
Returns None.
Throws Exception description, see ChatError.
Implementation
Future<void> removeMemberAttributes({
required String groupId,
required List<String> keys,
String? userId,
}) async {
try {
Map req = {
'groupId': groupId,
};
req.putIfNotNull('userId', userId);
req.putIfNotNull('keys', keys);
Map result = await platform_interface.Client.instance.groupManager.callNativeMethod(
ChatMethodKeys.removeMemberAttributesFromGroup, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}