Skip to content

Commit

Permalink
re-add comment to better explain hidden notification condition
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Jan 19, 2024
1 parent ce64efa commit 2d4a8a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/UnreadIndicatorUpdater/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default function getUnreadReportsForUnreadIndicator(reports: OnyxCollecti
isInGSDMode: false,
excludeEmptyChats: false,
}) &&
// Chats with hidden preference remain invisible in the LHN and are not considered "unread."
// They are excluded from the LHN rendering, but not filtered from the "option list."
// This ensures they appear in Search, but not in the LHN or unread count.
report?.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,
);
}
Expand Down

0 comments on commit 2d4a8a1

Please sign in to comment.