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:
parent
05f0087b4f
commit
557c053197
@ -380,7 +380,10 @@ func decodeMsgSyncResponse(c *QQClient, info *incomingPacketInfo, payload []byte
|
|||||||
var latest []*message.GroupMessage
|
var latest []*message.GroupMessage
|
||||||
for _, m := range gmRsp.Msg {
|
for _, m := range gmRsp.Msg {
|
||||||
if m.Head.GetFromUin() != 0 {
|
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{
|
ret.GroupSessions = append(ret.GroupSessions, &GroupSessionInfo{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user