mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-30 15:10:56 +00:00
Fix expiryDate property not being taken care of correctly
This commit is contained in:
parent
be94bf46a4
commit
c60a0604fc
@ -915,17 +915,18 @@
|
||||
|
||||
BITHockeyLog(@"INFO: Start UpdateManager");
|
||||
|
||||
if ([self expiryDateReached]) return;
|
||||
|
||||
if (![self appVersionIsAuthorized]) {
|
||||
if ([self authorizationState] == BITUpdateAuthorizationPending) {
|
||||
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"];
|
||||
|
||||
[self performSelector:@selector(checkForAuthorization) withObject:nil afterDelay:0.0f];
|
||||
}
|
||||
} else {
|
||||
if ([self checkForTracker] || ([self isCheckForUpdateOnLaunch] && [self shouldCheckForUpdates])) {
|
||||
[self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f];
|
||||
[self checkExpiryDateReached];
|
||||
if (![self expiryDateReached]) {
|
||||
if (![self appVersionIsAuthorized]) {
|
||||
if ([self authorizationState] == BITUpdateAuthorizationPending) {
|
||||
[self showBlockingScreen:BITHockeyLocalizedString(@"UpdateAuthorizationProgress") image:@"authorize_request.png"];
|
||||
|
||||
[self performSelector:@selector(checkForAuthorization) withObject:nil afterDelay:0.0f];
|
||||
}
|
||||
} else {
|
||||
if ([self checkForTracker] || ([self isCheckForUpdateOnLaunch] && [self shouldCheckForUpdates])) {
|
||||
[self performSelector:@selector(checkForUpdate) withObject:nil afterDelay:1.0f];
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user