From 0e2b1e41a74efcc18619406b3f77d916b60ebb69 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 3 Feb 2016 15:53:12 -0500 Subject: [PATCH] (fix) IMIP accept/decline when there is only one MIME part --- NEWS | 1 + UI/MailPartViewers/UIxMailPartViewer.m | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index fff8da0ae..0a9256f8a 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ Bug fixes - fixed blank calendar view when selecting "Descending Order" in the sort menu - show active user's default email address instead of system email address (#3473) - fixed display of HTML tags when viewing a message raw source (#3490) +- fixed IMIP accept/decline when there is only one MIME part 3.0.0 (2016-01-27) ------------------ diff --git a/UI/MailPartViewers/UIxMailPartViewer.m b/UI/MailPartViewers/UIxMailPartViewer.m index 816627d19..52ad5982c 100644 --- a/UI/MailPartViewers/UIxMailPartViewer.m +++ b/UI/MailPartViewers/UIxMailPartViewer.m @@ -334,7 +334,10 @@ bodyPart = [self clientPart]; - return [NSString stringWithFormat: @"%@/%@", [bodyPart nameInContainer], [self _filenameForAttachment: bodyPart]]; + if ([bodyPart isKindOfClass: [SOGoMailBodyPart class]]) + return [NSString stringWithFormat: @"%@/%@", [bodyPart nameInContainer], [self _filenameForAttachment: bodyPart]]; + + return @"0"; } - (NSString *) pathToAttachment