mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 19:00:26 +01:00
Inline GV1 auto-migration flag.
This commit is contained in:
@@ -40,7 +40,7 @@ public class ApplicationMigrations {
|
||||
|
||||
private static final int LEGACY_CANONICAL_VERSION = 455;
|
||||
|
||||
public static final int CURRENT_VERSION = 23;
|
||||
public static final int CURRENT_VERSION = 24;
|
||||
|
||||
private static final class Version {
|
||||
static final int LEGACY = 1;
|
||||
@@ -66,6 +66,7 @@ public class ApplicationMigrations {
|
||||
static final int GV2_2 = 21;
|
||||
static final int CDS = 22;
|
||||
static final int BACKUP_NOTIFICATION = 23;
|
||||
static final int GV1_MIGRATION = 24;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -276,6 +277,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.BACKUP_NOTIFICATION, new BackupNotificationMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.GV1_MIGRATION) {
|
||||
jobs.put(Version.GV1_MIGRATION, new AttributesMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user