isMemberInGroupMuteList method
- String groupId
Checks whether the current user is in the group mute list.
Param groupId
The group ID.
Return Whether the current user is in the group mute list.
Throws A description of the exception. See ChatError.
Implementation
Future<bool> isMemberInGroupMuteList(String groupId) async {
Map req = {'groupId': groupId};
Map result = await _channel.invokeMethod(
ChatMethodKeys.isMemberInGroupMuteList,
req,
);
try {
ChatError.hasErrorFromResult(result);
return result.boolValue(ChatMethodKeys.isMemberInGroupMuteList);
} on ChatError catch (e) {
throw e;
}
}