mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 13:13:55 +00:00
Make sure update checks are never don from the AppStore environment also if the Update UI wasn't removed from the release build
This commit is contained in:
parent
dd0fab33f5
commit
ff351edbf1
@ -390,6 +390,10 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
#pragma mark - BetaUpdateUI
|
||||
|
||||
- (BITUpdateViewController *)hockeyViewController:(BOOL)modal {
|
||||
if ([self isAppStoreEnvironment]) {
|
||||
NSLog(@"[HockeySDK] This should not be called from an app store build!");
|
||||
return nil;
|
||||
}
|
||||
return [[BITUpdateViewController alloc] initWithModalStyle:modal];
|
||||
}
|
||||
|
||||
@ -542,6 +546,7 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
}
|
||||
|
||||
- (void)checkForUpdateShowFeedback:(BOOL)feedback {
|
||||
if ([self isAppStoreEnvironment]) return;
|
||||
if (self.isCheckInProgress) return;
|
||||
|
||||
_showFeedback = feedback;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user