TF-1810 Implement store detailed email to cache

(cherry picked from commit 6be6d69ad8e5fb05d839e2649b1f444613eea6d1)
This commit is contained in:
dab246
2023-05-10 18:00:46 +07:00
committed by Dat Vu
parent 664d1825c0
commit d357358341
20 changed files with 111 additions and 37 deletions
@@ -9,7 +9,7 @@ class GetNewReceiveEmailFromNotificationLoading extends UIState {}
class GetNewReceiveEmailFromNotificationSuccess extends UIState {
final List<EmailId> emailIds;
final Set<EmailId> emailIds;
final AccountId accountId;
final Session? session;
@@ -32,7 +32,7 @@ class GetNewReceiveEmailFromNotificationInteractor {
accountId,
currentState);
yield Right<Failure, Success>(GetNewReceiveEmailFromNotificationSuccess(accountId, session, listEmailIds));
yield Right<Failure, Success>(GetNewReceiveEmailFromNotificationSuccess(accountId, session, listEmailIds.toSet()));
} else {
yield Left<Failure, Success>(GetNewReceiveEmailFromNotificationFailure(EmailStateNoChangeException()));
}