Skip to content

Commit

Permalink
Merge pull request #31653 from tienifr/fix/31623
Browse files Browse the repository at this point in the history
[CP Stag] fix: 31623 Unread message green line marker remains after opening the new message

(cherry picked from commit 04b2808)
  • Loading branch information
luacmartins authored and OSBotify committed Nov 21, 2023
1 parent 0078be3 commit 71e3d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function ReportActionsList({
if (!userActiveSince.current || report.reportID !== prevReportID) {
return;
}
if (!messageManuallyMarkedUnread && lastReadTimeRef.current && lastReadTimeRef.current < report.lastReadTime) {
if (!messageManuallyMarkedUnread && (lastReadTimeRef.current || '') < report.lastReadTime) {
cacheUnreadMarkers.delete(report.reportID);
}
lastReadTimeRef.current = report.lastReadTime;
Expand Down

0 comments on commit 71e3d97

Please sign in to comment.