mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-31 03:38:02 +08:00
Close #370, ignore messages before group is initialized
This commit is contained in:
@@ -81,7 +81,9 @@ internal object OnlinePushReqPush : IncomingPacketFactory<OnlinePushReqPush.ReqP
|
||||
val packets: Sequence<Packet> = reqPushMsg.vMsgInfos.deco(bot.client) { msgInfo ->
|
||||
when (msgInfo.shMsgType.toInt()) {
|
||||
732 -> {
|
||||
val group = bot.getGroup(readUInt().toLong())
|
||||
val group = bot.getGroupOrNull(readUInt().toLong())
|
||||
?: return@deco emptySequence() // group has not been initialized
|
||||
|
||||
GroupImpl.checkIsInstance(group)
|
||||
|
||||
val internalType = readByte().toInt()
|
||||
|
||||
Reference in New Issue
Block a user