allowGroupMember static method
Future<void>
allowGroupMember(
- String groupId,
- bool isSet,
- List<
String> memberIds, - OperationSuccessVoidCallback successCallback,
- OperationFailureCallback errorCallback, {
- List<
int> notifyLines = const [], - 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)
});
}