TF-2331 Fix Read receipt includes weird attachments that are impossible to download
(cherry picked from commit 72ae6553ea53fa4bbba74bfdb1c9a3ec82103fc0)
This commit is contained in:
@@ -133,6 +133,8 @@ extension EmailExtension on Email {
|
||||
return emailContents ?? [];
|
||||
}
|
||||
|
||||
List<Attachment> get htmlBodyAttachments => htmlBody?.map((item) => item.toAttachment()).toList() ?? [];
|
||||
|
||||
List<Attachment> get allAttachments => attachments?.map((item) => item.toAttachment()).toList() ?? [];
|
||||
|
||||
List<Attachment> get attachmentsWithCid => allAttachments.where((attachment) => attachment.hasCid()).toList();
|
||||
|
||||
Reference in New Issue
Block a user