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