TF-1708 Update props properties for all state object in interactor

(cherry picked from commit 2a5441c2ef4facf28e7e6e1678e89601d72259be)
This commit is contained in:
dab246
2023-07-07 13:07:53 +07:00
committed by Dat Vu
parent 24d7eee69a
commit 0583406e3b
142 changed files with 348 additions and 1092 deletions
@@ -33,10 +33,10 @@ class MarkAsEmailReadInteractor {
currentEmailState: currentEmailState,
currentMailboxState: currentMailboxState));
} else {
yield Left(MarkAsEmailReadFailure(null, readAction));
yield Left(MarkAsEmailReadFailure(readAction));
}
} catch (e) {
yield Left(MarkAsEmailReadFailure(e, readAction));
yield Left(MarkAsEmailReadFailure(readAction, exception: e));
}
}
}
@@ -23,10 +23,10 @@ class MarkAsStarEmailInteractor {
markStarAction,
currentEmailState: currentEmailState));
} else {
yield Left(MarkAsStarEmailFailure(null, markStarAction));
yield Left(MarkAsStarEmailFailure(markStarAction));
}
} catch (e) {
yield Left(MarkAsStarEmailFailure(e, markStarAction));
yield Left(MarkAsStarEmailFailure(markStarAction, exception: e));
}
}
}
@@ -37,10 +37,10 @@ class MoveToMailboxInteractor {
currentMailboxState: currentMailboxState,
currentEmailState: currentEmailState));
} else {
yield Left(MoveToMailboxFailure(moveRequest.emailActionType, null));
yield Left(MoveToMailboxFailure(moveRequest.emailActionType));
}
} catch (e) {
yield Left(MoveToMailboxFailure(moveRequest.emailActionType, e));
yield Left(MoveToMailboxFailure(moveRequest.emailActionType, exception: e));
}
}
}