Skip to content

Commit

Permalink
fix: pull message unread count remove.
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
  • Loading branch information
FGadvancer committed Nov 10, 2023
1 parent ce8c120 commit a495f49
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/interaction/msg_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,11 @@ func (m *MsgSyncer) pullMsgBySeqRange(ctx context.Context, seqMap map[string][2]

req := sdkws.PullMessageBySeqsReq{UserID: m.loginUserID}
for conversationID, seqs := range seqMap {
var pullNums int64 = syncMsgNum
if pullNums > seqs[1]-seqs[0] {
pullNums = seqs[1] - seqs[0]
}
req.SeqRanges = append(req.SeqRanges, &sdkws.SeqRange{
ConversationID: conversationID,
Begin: seqs[0],
End: seqs[1],
Num: pullNums,
Num: syncMsgNum,
})
}
resp = &sdkws.PullMessageBySeqsResp{}
Expand Down

0 comments on commit a495f49

Please sign in to comment.