mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-25 21:23:55 +08:00
Close #370, ignore messages before group is initialized
This commit is contained in:
parent
becc54dd42
commit
aa69f570d2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user