-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
GO-4727 local counters for chat #2039
base: main
Are you sure you want to change the base?
Conversation
283d66c
to
a1c97db
Compare
oldestOrderId = doc.Value().GetObject(orderKey).Get("id").GetString() | ||
} | ||
|
||
count, err := unreadQuery.Count(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like count
is 0 or 1 because of limit=1
} | ||
|
||
// mark the whole tree as seen from the current message | ||
s.storeSource.MarkSeenHeads([]string{msg.Id}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed there should be many messages, not one marked as head, because otherwise we will miss some read messages. Pls change it
// for testing purposes | ||
lastAddedMessageTimestamp = math.MaxInt64 | ||
} | ||
iter, err := coll.Find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add filter for unread messages?
TODO: