From a8f8a2e00863032adc68c2a5f138020c76e34d48 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 13 Nov 2024 10:55:45 +0800 Subject: [PATCH] fix unread search results doesn't show the title in bold --- src/libs/OptionsListUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index 6bcb353cf065..bb29674df6a1 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -2503,7 +2503,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; }