fetchMuteListFromServer method
获取群组的禁言列表。
仅群主和管理员可调用此方法。
Param groupId 群组 ID。
Param pageSize 每页返回的禁言成员数。
Param pageNum 当前页码,从 1 开始。
Return 群组的禁言列表。
Throws  如果有异常会在此抛出,包括错误码和错误信息,详见 ChatError。
Implementation
Future<Map<String, int>> fetchMuteListFromServer(
  String groupId, {
  int pageSize = 200,
  int pageNum = 1,
}) async {
  Map req = {'groupId': groupId, 'pageNum': pageNum, 'pageSize': pageSize};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.getGroupMuteListFromServer, req);
  try {
    ChatError.hasErrorFromResult(result);
    Map? tmpMap = result[ChatMethodKeys.getGroupMuteListFromServer];
    Map<String, int> ret = {};
    if (tmpMap != null) {
      for (var item in tmpMap.entries) {
        if (item.key is String && item.value is int) {
          ret[item.key] = item.value;
        }
      }
    }
    return ret;
  } on ChatError catch (e) {
    throw e;
  }
}