feat(mail): Add SOGoMailHideInlineAttachments option to hide attachments when inline. Fixes #5490.

This commit is contained in:
smizrahi
2023-11-02 09:45:51 +01:00
parent abce5f42cf
commit f41ab2ed0c
+1 -1
View File
@@ -127,7 +127,7 @@
if (!([info objectForKey:@"disposition"]
&& [[info objectForKey:@"disposition"] objectForKey:@"type"]
&& [[[info objectForKey:@"disposition"] objectForKey:@"type"] isEqualToString:@"INLINE"]
&& [[[[info objectForKey:@"disposition"] objectForKey:@"type"] uppercaseString] isEqualToString:@"INLINE"]
&& [ud hideInlineAttachments])) {
viewer = [[[self context] mailRenderingContext] viewerForBodyInfo: info];
[viewer setBodyInfo: info];