mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-12 20:00:48 +00:00
c41e11be20
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>