From ee906d85f3841ba7cea08c8769a0dddf33f52053 Mon Sep 17 00:00:00 2001 From: sandtechnology Date: Mon, 11 Jan 2021 21:44:58 +0800 Subject: [PATCH] Fix missed PC client message --- .../network/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt b/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt index 343068608..a71edbdc9 100644 --- a/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt +++ b/mirai-core/src/commonMain/kotlin/network/protocol/packet/chat/receive/MessageSvc.PbGetMsg.kt @@ -427,7 +427,7 @@ internal suspend fun MsgComm.Msg.transform(bot: QQAndroidBot): Packet? { ?: return null with(data.msgHeader ?: return null) { - if (srcUin != dstUin || dstUin != bot.id) return null + if (dstUin != bot.id) return null val client = bot.otherClients.find { it.appId == srcInstId } ?: return null// don't compare with dstAppId. diff.