From 9ee14be2b65e70adc4a9140cfbe3b9f7dd1a210d Mon Sep 17 00:00:00 2001 From: Abdul Rehman Date: Mon, 17 Jun 2024 05:11:15 +0500 Subject: [PATCH] #43782: [CRITICAL] [UX Reliability] Domain chat room is showing in focus mode in LHN despite not having any new messages --- src/libs/SidebarUtils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index 820444443d78..1159edd6f061 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -118,6 +118,9 @@ function getOrderedReportIDs( const participantAccountIDs = Object.keys(report?.participants ?? {}).map(Number); if (currentUserAccountID && AccountUtils.isAccountIDOddNumber(currentUserAccountID) && participantAccountIDs.includes(CONST.ACCOUNT_ID.NOTIFICATIONS)) { + if (isInFocusMode) { + return ReportUtils.isUnread(report); + } return true; }