TF-1708 Update props properties for all state object in interactor
(cherry picked from commit 2a5441c2ef4facf28e7e6e1678e89601d72259be)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user