pull/1/head
Frederic Jacobs 10 years ago
parent f4212284ee
commit 29bd2f0787

@ -3549,6 +3549,7 @@
"DEBUG=1",
"$(inherited)",
HAVE_CONFIG_H,
"ADHOC=1",
);
GCC_STRICT_ALIASING = NO;
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO;

@ -331,7 +331,16 @@ static NSString *const CHECKBOX_EMPTY_IMAGE_NAME = @"checkbox_empty";
}
- (void)submitEmail:(NSString*)url{
NSString *urlString = [NSString stringWithString: [@"mailto:support@whispersystems.org?subject=iOS%20Debug%20Log&body=" stringByAppendingString:[[NSString stringWithFormat:@"Log URL: %@ \n Tell us about the issue: ", url]stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]]];
NSString *emailAddress;
#ifdef ADHOC
emailAddress = @"signal-beta@fredericjacobs.com";
#else
emailAddress = @"support@whispersystems.org";
#endif
NSString *urlString = [NSString stringWithString: [[NSString stringWithFormat:@"mailto:%@?subject=iOS%%20Debug%%20Log&body=", emailAddress] stringByAppendingString:[[NSString stringWithFormat:@"Log URL: %@ \n Tell us about the issue: ", url]stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]]];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: urlString]];
}

Loading…
Cancel
Save