Skip to content

Commit

Permalink
update unread condition by self dm
Browse files Browse the repository at this point in the history
  • Loading branch information
suneox committed Jun 11, 2024
1 parent fb276f4 commit f0e3fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5174,7 +5174,7 @@ function isUnread(report: OnyxEntry<Report>): boolean {
return false;
}

if (isEmptyReport(report)) {
if (isEmptyReport(report) && !isSelfDM(report)) {
return false;
}
// lastVisibleActionCreated and lastReadTime are both datetime strings and can be compared directly
Expand Down

0 comments on commit f0e3fdd

Please sign in to comment.