TF-2610 Fix missing attachments when sent from iphone
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -37,10 +37,6 @@ class Attachment with EquatableMixin {
|
||||
|
||||
bool isDispositionInlined() => disposition == ContentDisposition.inline;
|
||||
|
||||
bool isDispositionAttachment() => disposition == ContentDisposition.attachment;
|
||||
|
||||
bool isDispositionAttachmentNoCID() => isDispositionAttachment() && noCid();
|
||||
|
||||
bool isApplicationRTFInlined() => type?.mimeType == applicationRTFType && isDispositionInlined();
|
||||
|
||||
String getDownloadUrl(String baseDownloadUrl, AccountId accountId) {
|
||||
|
||||
@@ -29,7 +29,7 @@ extension AttachmentExtension on Attachment {
|
||||
}
|
||||
|
||||
bool isOutsideAttachment(List<Attachment> htmlBodyAttachments) {
|
||||
return (isDispositionAttachmentNoCID() || !isDispositionInlined()) &&
|
||||
return (noCid() || !isDispositionInlined()) &&
|
||||
!isApplicationRTFInlined() &&
|
||||
!htmlBodyAttachments.include(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user