removeAllowList method
从白名单中移除群成员。 仅群主和管理员有权限调用。
Param groupId 群组 ID。
Param members 要从白名单中移除的成员列表。
Return 无。
Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 ChatError.
Implementation
Future<void> removeAllowList(
String groupId,
List<String> members,
) async {
try {
Map req = {'groupId': groupId, 'members': members};
Map result = await platform_interface.Client.instance.groupManager
.callNativeMethod(ChatMethodKeys.removeWhiteList, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}