mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-07-12 00:23:48 +00:00
fix sync nil pointer.
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user