fix(mail): Fix inline text issue when Hide inline attachment option is set

This commit is contained in:
smizrahi
2024-01-03 09:10:48 +01:00
parent 5ad1d9d9c3
commit 00d69560ba
4 changed files with 25 additions and 15 deletions
+8
View File
@@ -54,6 +54,7 @@
attachmentIds = nil;
flatContent = nil;
decodedContent = nil;
_shouldDisplayAttachment = YES;
}
return self;
@@ -204,6 +205,7 @@
[[self sizeFormatter] stringForObjectValue: [bodyInfo objectForKey: @"size"]], @"size",
[self pathToAttachment], @"viewURL",
[self pathForDownload], @"downloadURL",
[NSNumber numberWithBool:_shouldDisplayAttachment], @"shouldDisplayAttachment",
nil];
}
@@ -222,6 +224,12 @@
attachmentIds = newAttachmentIds;
}
- (void) setAttachmentIds:(NSDictionary *)newAttachmentIds displayAttachment:(BOOL)shouldDisplayAttachment
{
[self setAttachmentIds: newAttachmentIds];
_shouldDisplayAttachment = shouldDisplayAttachment;
}
- (NSString *) flatContentAsString
{
NSString *charset, *s;