Fix can not refresh change list mailbox and email after take actions with email in succession

This commit is contained in:
dab246
2023-01-18 14:08:08 +07:00
committed by Dat H. Pham
parent 8587b9e8bd
commit 0f675c2270
20 changed files with 40 additions and 7 deletions
@@ -14,6 +14,8 @@ class DeleteMultipleEmailsPermanentlyInteractor {
Stream<Either<Failure, Success>> execute(AccountId accountId, List<EmailId> emailIds) async* {
try {
yield Right<Failure, Success>(LoadingDeleteMultipleEmailsPermanentlyAll());
final listState = await Future.wait([
_mailboxRepository.getMailboxState(),
_emailRepository.getEmailState(),
@@ -14,6 +14,8 @@ class MoveToMailboxInteractor {
Stream<Either<Failure, Success>> execute(AccountId accountId, MoveToMailboxRequest moveRequest) async* {
try {
yield Right(LoadingMoveToMailbox());
final listState = await Future.wait([
_mailboxRepository.getMailboxState(),
_emailRepository.getEmailState(),