From b9990b46d2f9ded05ae5d192542506197be0b80d Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 18 Feb 2016 11:09:14 +0100 Subject: [PATCH] linphonerc: set debug_popup_email in factory --- Classes/DialerView.m | 3 +-- Classes/SettingsView.m | 5 ++++- Resources/linphonerc-factory | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Classes/DialerView.m b/Classes/DialerView.m index 7f965fe07..a62631219 100644 --- a/Classes/DialerView.m +++ b/Classes/DialerView.m @@ -254,8 +254,7 @@ static UICompositeViewDescription *compositeDescription = nil; block:^{ NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]; - NSString *logsAddress = - [mgr lpConfigStringForKey:@"debug_popup_email" withDefault:@"linphone-ios@linphone.org"]; + NSString *logsAddress = [mgr lpConfigStringForKey:@"debug_popup_email" withDefault:@""]; [self presentMailViewWithTitle:appName forRecipients:@[ logsAddress ] attachLogs:true]; }]; diff --git a/Classes/SettingsView.m b/Classes/SettingsView.m index fdf9607bc..329cc07be 100644 --- a/Classes/SettingsView.m +++ b/Classes/SettingsView.m @@ -815,7 +815,10 @@ static UICompositeViewDescription *compositeDescription = nil; [picker setSubject:NSLocalizedString(@"", @"Email title for people wanting to send a bug report")]; - [picker setToRecipients:[NSArray arrayWithObjects:@"linphone-iphone@belledonne-communications.com", nil]]; + [picker setToRecipients:[NSArray + arrayWithObjects:[LinphoneManager.instance lpConfigStringForKey:@"debug_popup_email" + withDefault:@""], + nil]]; [picker setMessageBody:NSLocalizedString(@"Here are information about an issue I had on my device.\nI was " @"doing ...\nI expected Linphone to ...\nInstead, I got an " @"unexpected result: ...", diff --git a/Resources/linphonerc-factory b/Resources/linphonerc-factory index cd8d1abd2..0c280c138 100644 --- a/Resources/linphonerc-factory +++ b/Resources/linphonerc-factory @@ -18,6 +18,7 @@ display_filter_auto_rotate=0 #use_phone_number=0 send_logs_include_linphonerc_and_chathistory=0 #debug_popup_magic=**00** +debug_popup_email=linphone-iphone@belledonne-communications.com [assistant] username_length=-1