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 isDispositionInlined() => disposition == ContentDisposition.inline;
|
||||||
|
|
||||||
bool isDispositionAttachment() => disposition == ContentDisposition.attachment;
|
|
||||||
|
|
||||||
bool isDispositionAttachmentNoCID() => isDispositionAttachment() && noCid();
|
|
||||||
|
|
||||||
bool isApplicationRTFInlined() => type?.mimeType == applicationRTFType && isDispositionInlined();
|
bool isApplicationRTFInlined() => type?.mimeType == applicationRTFType && isDispositionInlined();
|
||||||
|
|
||||||
String getDownloadUrl(String baseDownloadUrl, AccountId accountId) {
|
String getDownloadUrl(String baseDownloadUrl, AccountId accountId) {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ extension AttachmentExtension on Attachment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool isOutsideAttachment(List<Attachment> htmlBodyAttachments) {
|
bool isOutsideAttachment(List<Attachment> htmlBodyAttachments) {
|
||||||
return (isDispositionAttachmentNoCID() || !isDispositionInlined()) &&
|
return (noCid() || !isDispositionInlined()) &&
|
||||||
!isApplicationRTFInlined() &&
|
!isApplicationRTFInlined() &&
|
||||||
!htmlBodyAttachments.include(this);
|
!htmlBodyAttachments.include(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user