TF-3002 [MOBILE] Combine SimpleSearchFilter & SearchEmailFilter

This commit is contained in:
dab246
2024-09-13 12:12:15 +07:00
committed by Dat H. Pham
parent 1041470f2d
commit fec26a555b
9 changed files with 149 additions and 261 deletions
@@ -1316,7 +1316,7 @@ class ThreadController extends BaseController with EmailActionController {
searchController.enableSearch();
if (searchQuery != null) {
searchController.updateTextSearch(searchQuery.value);
searchController.updateFilterEmail(text: searchQuery);
searchController.updateFilterEmail(textOption: Some(searchQuery));
if (currentContext != null) {
FocusScope.of(currentContext!).unfocus();
}
@@ -1331,7 +1331,7 @@ class ThreadController extends BaseController with EmailActionController {
dispatchState(Right(SearchingState()));
searchController.enableSearch();
searchController.updateTextSearch(searchQuery.value);
searchController.updateFilterEmail(text: searchQuery);
searchController.updateFilterEmail(textOption: Some(searchQuery));
if (currentContext != null) {
FocusScope.of(currentContext!).unfocus();
}