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
  • Loading branch information
luacmartins authored Nov 21, 2023
2 parents c9b69ff + 1b92967 commit 04b2808
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 04b2808

Please sign in to comment.