TF-3369 Fix cid image without disposition (#3373)

This commit is contained in:
Dat Dang
2024-12-26 12:39:47 +07:00
committed by Dat H. Pham
parent f0e0869f96
commit 2d976bed18
8 changed files with 5761 additions and 4 deletions
@@ -25,7 +25,7 @@ extension ListAttachmentExtension on List<Attachment> {
}
List<Attachment> get listAttachmentsDisplayedInContent =>
where((attachment) => attachment.hasCid() && attachment.isDispositionInlined())
where((attachment) => attachment.hasCid() && (attachment.isDispositionInlined() || attachment.isDispositionUndefined()))
.toList();
Map<String, String> toMapCidImageDownloadUrl({