Files
Cursor Agent c41e11be20 Fix flaky Get unread reply counts for thread store test
GetThreadUnreadReplyCount counts replies with CreateAt strictly greater than
LastViewed. The MM-41797 workaround only overwrote reply CreateAt when it was
still less than or equal to the root, so one reply could be advanced a few
milliseconds ahead of the root while the other still matched the root time;
MarkAsRead(root.CreateAt) then left only one strictly-unread reply.

Always rewrite CreateAt for posts in the same thread (RootId == root) so both
replies sit unambiguously after the root watermark.

Tests-only change.

Co-authored-by: Maria A Nunez <maria.nunez@mattermost.com>
2026-05-12 17:54:28 +00:00
..
2026-05-11 12:29:25 +02:00
2026-04-21 02:33:20 -07:00
2026-05-12 15:59:12 +00:00