Skip to content

Commit

Permalink
Merge pull request #52443 from bernhardoj/fix/51410-search-user-title…
Browse files Browse the repository at this point in the history
…-isnt-bold

Fix unread search results doesn't show the title in bold
  • Loading branch information
srikarparsi authored Nov 14, 2024
2 parents b5afbe6 + a8f8a2e commit 04d85d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ function getEmptyOptions(): Options {
}

function shouldUseBoldText(report: ReportUtils.OptionData): boolean {
const notificationPreference = ReportUtils.getReportNotificationPreference(report);
const notificationPreference = report.notificationPreference ?? ReportUtils.getReportNotificationPreference(report);
return report.isUnread === true && notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.MUTE && notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN;
}

Expand Down

0 comments on commit 04d85d8

Please sign in to comment.