mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +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;
|
self.blockingView = nil;
|
||||||
return YES;
|
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];
|
BITUpdateAuthorizationState state = [self authorizationState];
|
||||||
if (state == BITUpdateAuthorizationDenied) {
|
if (state == BITUpdateAuthorizationDenied) {
|
||||||
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationDenied") image:@"authorize_denied.png"];
|
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationDenied") image:@"authorize_denied.png"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user