From 70bbfcf78699da04f603224f74c7ead54a72b46c Mon Sep 17 00:00:00 2001 From: sandtechnology <20417547+sandtechnology@users.noreply.github.com> Date: Sun, 28 Mar 2021 22:48:38 +0800 Subject: [PATCH] Correct group syncing logic again, Fix #1120 (#1123) --- .../network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt b/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt index f9fcaca67..2f619e065 100644 --- a/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt +++ b/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt @@ -14,7 +14,6 @@ package net.mamoe.mirai.internal.network.protocol.packet.chat.receive -import kotlinx.coroutines.runBlocking import kotlinx.coroutines.sync.withLock import kotlinx.io.core.* import kotlinx.serialization.Serializable @@ -621,7 +620,7 @@ internal object Transformers528 : Map<Long, Lambda528> by mapOf( when (msg.msgGroupMsgSync.msgType) { 1, 2 -> { bot.groupListModifyLock.withLock { - bot.createGroupForBot(msg.msgGroupMsgSync.grpCode)?.let { + bot.createGroupForBot(Mirai.calculateGroupUinByGroupCode(msg.msgGroupMsgSync.grpCode))?.let { packetList.add(BotJoinGroupEvent.Active(it)) } }