TF-3487 Handle get mailbox failure

This commit is contained in:
DatDang
2025-02-24 10:38:51 +07:00
committed by Dat H. Pham
parent 33b90d3c65
commit f23b9eed71
5 changed files with 17 additions and 20 deletions
@@ -25,7 +25,10 @@ class GetAllMailboxInteractor {
properties: properties)
.map(_toGetMailboxState);
} catch (e) {
yield Left<Failure, Success>(GetAllMailboxFailure(e));
yield Left<Failure, Success>(GetAllMailboxFailure(
e,
onRetry: execute(session, accountId, properties: properties),
));
}
}