From 2d4a8a1005f3e3f4a483ce7ec89a196bfe049822 Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Sat, 20 Jan 2024 01:39:25 +0500 Subject: [PATCH] re-add comment to better explain hidden notification condition --- src/libs/UnreadIndicatorUpdater/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/UnreadIndicatorUpdater/index.ts b/src/libs/UnreadIndicatorUpdater/index.ts index 044b643f5322..5ba15f519ce9 100644 --- a/src/libs/UnreadIndicatorUpdater/index.ts +++ b/src/libs/UnreadIndicatorUpdater/index.ts @@ -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, ); }