mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
MESSENGER-5556 fix maintenance sync
This commit is contained in:
@@ -2475,8 +2475,7 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
||||
#pragma mark - Bwi Check App version
|
||||
|
||||
- (void)checkAppVersionDeprecated {
|
||||
ValidAppVersionsDefaultService *appVersionsService = [[ValidAppVersionsDefaultService alloc] init];
|
||||
if( BWIBuildSettings.shared.bwiCheckAppVersion && appVersionsService.isCurrentAppVersionDeprecated ) {
|
||||
if( BWIBuildSettings.shared.bwiCheckAppVersion && ValidAppVersionsDefaultService.shared.isCurrentAppVersionDeprecated ) {
|
||||
|
||||
MXWeakify(self);
|
||||
UIAlertController *errorAlert = [UIAlertController alertControllerWithTitle:[BWIL10n bwiOutdatedVersionWarningTitle]
|
||||
@@ -2498,8 +2497,7 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
||||
}
|
||||
|
||||
- (void)checkAppVersionOutdated {
|
||||
ValidAppVersionsDefaultService *appVersionsService = [[ValidAppVersionsDefaultService alloc] init];
|
||||
if (BWIBuildSettings.shared.bwiCheckAppVersion && appVersionsService.isCurrentAppVersionOutdated && !appVersionsService.wasOutdatedAlertShown) {
|
||||
if (BWIBuildSettings.shared.bwiCheckAppVersion && ValidAppVersionsDefaultService.shared.isCurrentAppVersionOutdated && !ValidAppVersionsDefaultService.shared.wasOutdatedAlertShown) {
|
||||
MXWeakify(self);
|
||||
UIAlertController *errorAlert = [UIAlertController alertControllerWithTitle:[BWIL10n bwiOutdatedVersionWarningTitle]
|
||||
message:[BWIL10n bwiOutdatedVersionWarningMessage:AppInfo.current.displayName]
|
||||
@@ -2510,7 +2508,7 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
||||
handler:^(UIAlertAction * action) {
|
||||
|
||||
[self gotoAppStore];
|
||||
[appVersionsService setOutdatedAlertShown:true];
|
||||
[ValidAppVersionsDefaultService.shared setOutdatedAlertShown:true];
|
||||
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
self->currentAlert = nil;
|
||||
@@ -2519,15 +2517,15 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
||||
[errorAlert addAction:[UIAlertAction actionWithTitle:[BWIL10n bwiOutdatedVersionLogoutButton]
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action) {
|
||||
[appVersionsService setOutdatedAlertShown:true];
|
||||
[ValidAppVersionsDefaultService.shared setOutdatedAlertShown:true];
|
||||
}]];
|
||||
|
||||
[self presentViewController:errorAlert animated:YES completion:nil];
|
||||
}
|
||||
|
||||
// bwi #5276: if outdated was shown but our app version is valid that means we have updated and have to reset outdated shown
|
||||
if (BWIBuildSettings.shared.bwiCheckAppVersion && !appVersionsService.isCurrentAppVersionOutdated && appVersionsService.wasOutdatedAlertShown) {
|
||||
[appVersionsService setOutdatedAlertShown:false];
|
||||
if (BWIBuildSettings.shared.bwiCheckAppVersion && !ValidAppVersionsDefaultService.shared.isCurrentAppVersionOutdated && ValidAppVersionsDefaultService.shared.wasOutdatedAlertShown) {
|
||||
[ValidAppVersionsDefaultService.shared setOutdatedAlertShown:false];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user