Skip to content

Commit

Permalink
Don't include muted reports in unread count
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Jan 24, 2024
1 parent 970183a commit 9c9c654
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libs/UnreadIndicatorUpdater/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ export default function getUnreadReportsForUnreadIndicator(reports: OnyxCollecti
* 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.
*
* Furthermore, muted reports may or may not appear in the LHN depending on priority mode,
* but they should not be considered in the unread indicator count.
*/
report?.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,
report?.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN &&
report?.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.MUTE,
);
}

Expand Down

0 comments on commit 9c9c654

Please sign in to comment.