isMemberInGroupMuteList method

Future<bool> isMemberInGroupMuteList(
  1. String groupId
)

~english 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. ~end

~chinese 查询自己是否在群禁言列表中。 Param groupId 群组 ID。 Return 是否在群禁言列表中。 Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 ChatError。 ~end

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;
  }
}