1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 04:50:26 +08:00

fix: null handle

This commit is contained in:
cssxsh 2023-07-22 08:27:21 +08:00
parent db214e8e71
commit 24036690f0
No known key found for this signature in database
GPG Key ID: 92849F91CA9D8ECE

View File

@ -325,7 +325,7 @@ internal class GroupNotificationProcessor(
data: MsgType0x2DC,
) = data.context {
val grayTip = buf.loadAs(TroopTips0x857.NotifyMsgBody.serializer(), 1).optGeneralGrayTip
?: return@context
?: return@context markNotConsumed()
markAsConsumed()
when (grayTip.templId) {
// 群幸运词