1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

fix sync nil pointer.

This commit is contained in:
Mrs4s 2021-03-28 13:32:12 +08:00
parent 05f0087b4f
commit 557c053197

View File

@ -380,7 +380,10 @@ func decodeMsgSyncResponse(c *QQClient, info *incomingPacketInfo, payload []byte
var latest []*message.GroupMessage
for _, m := range gmRsp.Msg {
if m.Head.GetFromUin() != 0 {
latest = append(latest, c.parseGroupMessage(m))
pm := c.parseGroupMessage(m)
if pm != nil {
latest = append(latest, pm)
}
}
}
ret.GroupSessions = append(ret.GroupSessions, &GroupSessionInfo{