TF-3487 Handle search email failure

This commit is contained in:
DatDang
2025-02-24 10:38:03 +07:00
committed by Dat H. Pham
parent 39cea85f86
commit 33b90d3c65
5 changed files with 29 additions and 9 deletions
@@ -55,7 +55,19 @@ class SearchEmailInteractor {
yield Right(SearchEmailSuccess(presentationEmailList));
} catch (e) {
yield Left(SearchEmailFailure(e));
yield Left(SearchEmailFailure(
e,
onRetry: execute(
session,
accountId,
filter: filter,
limit: limit,
position: position,
sort: sort,
properties: properties,
needRefreshSearchState: true,
),
));
}
}
}