mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-20 06:03:20 +00:00
@@ -47,8 +47,7 @@
|
||||
|
||||
s = [[info objectForKey:@"disposition"] objectForKey: @"type"];
|
||||
|
||||
shouldDisplay = (s && ([s caseInsensitiveCompare: @"ATTACHMENT"]
|
||||
== NSOrderedSame));
|
||||
shouldDisplay = (s && ([s caseInsensitiveCompare: @"ATTACHMENT"] == NSOrderedSame));
|
||||
|
||||
if (!shouldDisplay && !textPart)
|
||||
shouldDisplay = ([[info objectForKey: @"bodyId"] length] ? YES : NO);
|
||||
@@ -219,8 +218,8 @@ static BOOL showNamedTextAttachmentsInline = NO;
|
||||
if ([mt isEqualToString: @"image"] &&
|
||||
!([st isEqualToString: @"tiff"] || [st isEqualToString: @"pdf"]))
|
||||
{
|
||||
if ([self _shouldDisplayAsAttachment: _info textPart: NO])
|
||||
return [self linkViewer];
|
||||
if ([self _shouldDisplayAsAttachment: _info textPart: NO] || [st isEqualToString: @"svg+xml"])
|
||||
return [self linkViewer];
|
||||
|
||||
return [self imageViewer];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user