linphonerc: set debug_popup_email in factory

This commit is contained in:
Gautier Pelloux-Prayer 2016-02-18 11:09:14 +01:00
parent fe0c140be6
commit b9990b46d2
3 changed files with 6 additions and 3 deletions

View file

@ -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];
}];

View file

@ -815,7 +815,10 @@ static UICompositeViewDescription *compositeDescription = nil;
[picker setSubject:NSLocalizedString(@"<Please describe your problem or you will be ignored>",
@"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: ...",

View file

@ -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