From ff7d2a205bd19e28ea9601e2408942091efc0b87 Mon Sep 17 00:00:00 2001 From: dab246 Date: Sat, 23 Nov 2024 02:54:28 +0700 Subject: [PATCH] TF-3296 Fix [SEARCH] Can't apply the "Starred" filter in search --- .../presentation/controller/search_controller.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/features/mailbox_dashboard/presentation/controller/search_controller.dart b/lib/features/mailbox_dashboard/presentation/controller/search_controller.dart index be158dbfe..accfd2b12 100644 --- a/lib/features/mailbox_dashboard/presentation/controller/search_controller.dart +++ b/lib/features/mailbox_dashboard/presentation/controller/search_controller.dart @@ -150,10 +150,15 @@ class SearchController extends BaseController with DateRangePickerMixin { } } + final listHasKeyword = listFilterOnSuggestionForm.contains(QuickSearchFilter.starred) + ? {KeyWordIdentifier.emailFlagged.value} + : null; + updateFilterEmail( emailReceiveTimeTypeOption: Some(receiveTime), hasAttachmentOption: Some(hasAttachment), - fromOption: Some(listFromAddress) + fromOption: Some(listFromAddress), + hasKeywordOption: optionOf(listHasKeyword), ); clearFilterSuggestion();