mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 06:16:00 +00:00
fix(mail): Fix images in attachements when replying to a mail. Fixes #5731
This commit is contained in:
@@ -872,7 +872,10 @@ static NSString *userAgent = nil;
|
||||
{
|
||||
currentInfo = [attachments objectAtIndex: count];
|
||||
if (!onlyImages
|
||||
|| (onlyImages && [[NGMimeBodyPart imageMimeTypes] containsObject: [currentInfo objectForKey: @"mimetype"]])) {
|
||||
|| (onlyImages
|
||||
&& [[NGMimeBodyPart imageMimeTypes] containsObject: [currentInfo objectForKey: @"mimetype"]]
|
||||
&& [currentInfo objectForKey: @"bodyId"]
|
||||
&& [[currentInfo objectForKey: @"bodyId"] length] > 0)) {
|
||||
[self saveAttachment: [currentInfo objectForKey: @"body"]
|
||||
withMetadata: currentInfo];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user