From 3f1221699db490cc45aa896bf0b721301e73d8f7 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 10 Apr 2020 23:43:59 +0800 Subject: [PATCH] Fix build --- .../network/protocol/packet/chat/receive/OnlinePush.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt index 021b87ded..4ee23c4cb 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.kt @@ -148,7 +148,9 @@ internal class OnlinePush { return BotGroupPermissionChangeEvent( group, - group.botPermission.also { group.botPermission = newPermission }, + group.botPermission.also { + group.botAsMember.checkIsMemberImpl().permission = newPermission + }, newPermission ) } else {