From 32335546835668ae0c9247d3d8a2d8c4d2b9afe0 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 25 Apr 2018 13:29:53 -0400 Subject: [PATCH] Show database upgrade warning while launching v2.25 or later. --- Signal/src/AppDelegate.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index c048c3160..e0fa2c9e3 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -416,11 +416,12 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; { NSString *lastLaunchedAppVersion = AppVersion.instance.lastAppVersion; NSString *lastCompletedLaunchAppVersion = AppVersion.instance.lastCompletedLaunchAppVersion; - // Every time we change or add a database view in such a way that - // might cause a delay on launch, we need to bump this constant. + // Every time we change or add a database view to a large collection or + // add a database migration to a large collection, this can delay launch + // so we need to bump this constant. // - // We added a database view in v2.23.0. - NSString *kLastVersionWithDatabaseViewChange = @"2.23.0"; + // We added a database migration around all outgoing messages in v2.25.0. + NSString *kLastVersionWithDatabaseViewChange = @"2.25.0"; BOOL mayNeedUpgrade = ([TSAccountManager isRegistered] && lastLaunchedAppVersion && (!lastCompletedLaunchAppVersion || [VersionMigrations isVersion:lastCompletedLaunchAppVersion