Fix missing “database upgrade” label on launch screen.
// FREEBIE
This commit is contained in:
parent
5038744811
commit
ab9770c175
@ -158,10 +158,11 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
|
||||
BOOL shouldShowUpgradeLabel = NO;
|
||||
NSString *lastCompletedLaunchAppVersion = AppVersion.instance.lastCompletedLaunchAppVersion;
|
||||
NSString *kLastVersionWithDatabaseViewChange = @"2.13.0";
|
||||
BOOL mayNeedUpgrade = ([TSAccountManager isRegistered] && lastCompletedLaunchAppVersion &&
|
||||
[VersionMigrations isVersion:lastCompletedLaunchAppVersion
|
||||
atLeast:@"2.0.0"
|
||||
andLessThan:kLastVersionWithDatabaseViewChange]);
|
||||
BOOL mayNeedUpgrade = ([TSAccountManager isRegistered]
|
||||
&& (!lastCompletedLaunchAppVersion ||
|
||||
[VersionMigrations isVersion:lastCompletedLaunchAppVersion
|
||||
atLeast:@"2.0.0"
|
||||
andLessThan:kLastVersionWithDatabaseViewChange]));
|
||||
BOOL hasCompletedUpgrade = (lastCompletedLaunchAppVersion &&
|
||||
[VersionMigrations isVersion:lastCompletedLaunchAppVersion atLeast:kLastVersionWithDatabaseViewChange]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user