From f11690472abc93250a386b1836774e2d87c4310c Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 10 Apr 2020 20:31:20 +0800 Subject: [PATCH] Fix new member joining, close #172 --- .../network/protocol/packet/chat/receive/OnlinePush.kt | 2 +- 1 file changed, 1 insertion(+), 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 366576a65..ff1c4a01d 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 @@ -84,7 +84,7 @@ internal class OnlinePush { ) } - val group = bot.getGroup(pbPushMsg.msg.msgHead.groupInfo!!.groupCode) + val group = bot.getGroupOrNull(pbPushMsg.msg.msgHead.groupInfo!!.groupCode) ?: return null // 机器人还正在进群 val sender = group[pbPushMsg.msg.msgHead.fromUin] as MemberImpl val name = extraInfo?.groupCard?.run { try {