TF-3369 Fix cid image without disposition (#3373)
This commit is contained in:
@@ -39,6 +39,8 @@ class Attachment with EquatableMixin {
|
||||
|
||||
bool isDispositionInlined() => disposition == ContentDisposition.inline;
|
||||
|
||||
bool isDispositionUndefined() => disposition == null;
|
||||
|
||||
bool isApplicationRTFInlined() => type?.mimeType == applicationRTFType && isDispositionInlined();
|
||||
|
||||
String getDownloadUrl(String baseDownloadUrl, AccountId accountId) {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user