TF-389 Fix can not see the attachment in EmailView

This commit is contained in:
dab246
2022-03-28 12:04:29 +07:00
committed by Dat H. Pham
parent f639fdc0d8
commit bab7619840
4 changed files with 10 additions and 7 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ class Attachment with EquatableMixin {
this.disposition,
});
bool cidNotEmpty() => cid != null && cid!.isNotEmpty;
bool noCid() => cid == null || cid?.isEmpty == true;
bool hasCid() => cid != null && cid?.isNotEmpty == true;
String getDownloadUrl(String baseDownloadUrl, AccountId accountId) {
final downloadUriTemplate = UriTemplate('$baseDownloadUrl');