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 2d4a8a1 commit 7673831
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/libs/UnreadIndicatorUpdater/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ 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.
/**
* 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 7673831

Please sign in to comment.