TF-2628 [Part-2] Add attachment property to DownloadAttachmentForWebFailure & ViewAttachmentForWebFailure

This commit is contained in:
DatDang
2024-02-27 15:58:59 +07:00
committed by Dat H. Pham
parent ab8544c3ad
commit 6fe62cb068
6 changed files with 20 additions and 4 deletions
@@ -744,7 +744,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
_downloadProgressStateController));
} else {
consumeState(Stream.value(
Left(DownloadAttachmentForWebFailure(exception: NotFoundSessionException()))
Left(DownloadAttachmentForWebFailure(
attachment: attachment,
exception: NotFoundSessionException()))
));
}
}
@@ -763,7 +765,9 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
_downloadProgressStateController));
} else {
consumeState(Stream.value(
Left(ViewAttachmentForWebFailure(exception: NotFoundSessionException()))
Left(ViewAttachmentForWebFailure(
attachment: attachment,
exception: NotFoundSessionException()))
));
}
}