Skip to content

Commit

Permalink
Expensify#43782: [CRITICAL] [UX Reliability] Domain chat room is show…
Browse files Browse the repository at this point in the history
…ing in focus mode in LHN despite not having any new messages
  • Loading branch information
AbdulRehmanMehar committed Jun 17, 2024
1 parent 75c104b commit 9ee14be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/SidebarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9ee14be

Please sign in to comment.