From cad8dcb736b4b0d1b94c4c8baa54adc5f37176b3 Mon Sep 17 00:00:00 2001 From: Mrs4s <1844812067@qq.com> Date: Sun, 31 Jan 2021 06:44:30 +0800 Subject: [PATCH] fix data. --- client/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/sync.go b/client/sync.go index 621dfaa2..23c6346c 100644 --- a/client/sync.go +++ b/client/sync.go @@ -365,7 +365,7 @@ func decodeMsgSyncResponse(c *QQClient, _ uint16, payload []byte) (interface{}, } ret.GroupSessions = append(ret.GroupSessions, &GroupSessionInfo{ GroupCode: int64(gmRsp.GetGroupCode()), - UnreadCount: uint32(gmRsp.GetReturnEndSeq() - gmRsp.GetReturnBeginSeq()), // todo fix this + UnreadCount: uint32(gmRsp.GetReturnEndSeq() - gm.GetMemberSeq()), LatestMessages: latest, }) }