TF-1155 Automatically clear value of From/To field when disable advanced search

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 6f6e6970887525f3fbb9d0003eda8e1c5d41afa0)
This commit is contained in:
dab246
2023-11-08 14:50:26 +07:00
committed by Dat Vu
parent a0fede7b8f
commit 0c4fe85b69
6 changed files with 37 additions and 43 deletions
@@ -172,7 +172,7 @@ class SearchController extends BaseController with DateRangePickerMixin {
void updateFilterEmail({
Option<Set<String>>? fromOption,
Set<String>? to,
Option<Set<String>>? toOption,
SearchQuery? text,
Option<String>? subjectOption,
Set<String>? notKeyword,
@@ -185,7 +185,7 @@ class SearchController extends BaseController with DateRangePickerMixin {
}) {
searchEmailFilter.value = searchEmailFilter.value.copyWith(
fromOption: fromOption,
to: to,
toOption: toOption,
text: text,
subjectOption: subjectOption,
notKeyword: notKeyword,