From f0e3fdddac9d881275662c660a8e94b6f4bb04ca Mon Sep 17 00:00:00 2001 From: Cong Pham Date: Tue, 11 Jun 2024 21:44:39 +0700 Subject: [PATCH] update unread condition by self dm --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 4de976aaf160..a39bf5c9d59a 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -5174,7 +5174,7 @@ function isUnread(report: OnyxEntry): 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