From 52b8033c37e4d04b86630015e6acaf8455296574 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Thu, 20 Sep 2012 21:37:58 +0200 Subject: [PATCH] Fixed issue with logs in feedback message. [FIXED] Including logs in the feedback message caused failure to parse attachments. --- MasterPassword/iOS/MPAppDelegate.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MasterPassword/iOS/MPAppDelegate.m b/MasterPassword/iOS/MPAppDelegate.m index 0dccc856..c8ecff66 100644 --- a/MasterPassword/iOS/MPAppDelegate.m +++ b/MasterPassword/iOS/MPAppDelegate.m @@ -520,13 +520,13 @@ [PearlInfoPlist get].CFBundleShortVersionString, [PearlInfoPlist get].CFBundleVersion) - attachments:logs + attachments:(logs ? [[PearlEMailAttachment alloc] initWithContent:[[[PearlLogger get] formatMessagesWithLevel:logLevel] dataUsingEncoding:NSUTF8StringEncoding] mimeType:@"text/plain" fileName:PearlString(@"%@-%@.log", [[NSDateFormatter rfc3339DateFormatter] stringFromDate:[NSDate date]], [PearlKeyChain deviceIdentifier])] - : nil, nil] + : nil), nil] showComposerForVC:viewController]; }