mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-30 15:10:56 +00:00
Don't check for authorization if run from the iOS simulator
This commit is contained in:
parent
3d4d0bc719
commit
550bca42c1
@ -883,7 +883,12 @@
|
||||
self.blockingView = nil;
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
#if TARGET_IPHONE_SIMULATOR
|
||||
NSLog(@"Authentication checks only work on devices. Using the simulator will always return being authorized.");
|
||||
return YES;
|
||||
#endif
|
||||
|
||||
BITUpdateAuthorizationState state = [self authorizationState];
|
||||
if (state == BITUpdateAuthorizationDenied) {
|
||||
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationDenied") image:@"authorize_denied.png"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user