mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 02:15:36 +00:00
fix(mail): Fix inline text issue when Hide inline attachment option is set
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user