TF-3025 Avoid search results being reloaded when performing certain actions read/star/...

This commit is contained in:
dab246
2024-10-02 00:39:46 +07:00
committed by Dat H. Pham
parent d77e1585b8
commit 5d6d3afb78
3 changed files with 15 additions and 5 deletions
@@ -26,10 +26,15 @@ class SearchEmailInteractor {
Set<Comparator>? sort,
Filter? filter,
Properties? properties,
bool isRefreshChange = false,
}
) async* {
try {
yield Right(SearchingState());
if (isRefreshChange) {
yield Right(RefreshingSearchState());
} else {
yield Right(SearchingState());
}
final emailList = await threadRepository.searchEmails(
session,