TF-332 Add loadingState for update email drafts and get content email

This commit is contained in:
dab246
2022-07-11 12:20:24 +07:00
committed by Dat H. Pham
parent 6fb6a79abc
commit fa9b14c0d0
5 changed files with 21 additions and 3 deletions
@@ -14,7 +14,7 @@ class GetEmailContentInteractor {
Stream<Either<Failure, Success>> execute(AccountId accountId, EmailId emailId, String? baseDownloadUrl) async* {
try {
yield Right<Failure, Success>(LoadingState());
yield Right<Failure, Success>(GetEmailContentLoading());
final email = await emailRepository.getEmailContent(accountId, emailId);
if (email.emailContentList.isNotEmpty) {