Fix missing “database upgrade” label on launch screen.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
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…
Cancel
Save