mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Add BITCrashManagerDelegate that is invoked if the user chooses not to send a crash report
This commit is contained in:
parent
8920cbc6c4
commit
352230b5f7
@ -355,6 +355,10 @@
|
||||
if ([alertView tag] == BITCrashAlertTypeSend) {
|
||||
switch (buttonIndex) {
|
||||
case 0:
|
||||
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(crashReporterWillCancelSendingCrashReport:)]) {
|
||||
[self.delegate crashReporterWillCancelSendingCrashReport:self];
|
||||
}
|
||||
|
||||
_sendingInProgress = NO;
|
||||
[self cleanCrashReports];
|
||||
break;
|
||||
|
@ -60,6 +60,13 @@
|
||||
-(void)crashReporterWillShowSubmitCrashReportAlert:(BITCrashManager *)crashReporter;
|
||||
|
||||
|
||||
/** Invoked after the user did choose _NOT_ to send a crash in the alert
|
||||
|
||||
@param crashReporter The `BITCrashManager` instance invoking this delegate
|
||||
*/
|
||||
-(void)crashReporterWillCancelSendingCrashReport:(BITCrashManager *)crashReporter;
|
||||
|
||||
|
||||
/** Invoked after the user did choose to send crashes always in the alert
|
||||
|
||||
@param crashReporter The `BITCrashManager` instance invoking this delegate
|
||||
|
Loading…
x
Reference in New Issue
Block a user