allowGroupMember static method

Future<void> allowGroupMember(
  1. String groupId,
  2. bool isSet,
  3. List<String> memberIds,
  4. OperationSuccessVoidCallback successCallback,
  5. OperationFailureCallback errorCallback, {
  6. List<int> notifyLines = const [],
  7. MessageContent? notifyContent,
})

设置/取消群白名单

Implementation

static Future<void> allowGroupMember(
    String groupId,
    bool isSet,
    List<String> memberIds,
    OperationSuccessVoidCallback successCallback,
    OperationFailureCallback errorCallback,
    {List<int> notifyLines = const [],
    MessageContent? notifyContent}) async {
  int requestId = _requestId++;
  _operationSuccessCallbackMap[requestId] = successCallback;
  _errorCallbackMap[requestId] = errorCallback;
  await _channel.invokeMethod("allowGroupMember", {
    "requestId": requestId,
    "groupId": groupId,
    "isSet": isSet,
    "memberIds": memberIds,
    "notifyLines": notifyLines,
    "notifyContent": await _convertMessageContent(notifyContent)
  });
}