mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 04:28:35 +00:00
Add app migration for SSRE2 capability.
This commit is contained in:
committed by
Cody Henthorne
parent
9966bf2fbd
commit
54bbe48869
@@ -167,9 +167,10 @@ public class ApplicationMigrations {
|
|||||||
static final int BAD_E164_FIX = 123;
|
static final int BAD_E164_FIX = 123;
|
||||||
static final int GPB_TOKEN_MIGRATION = 124;
|
static final int GPB_TOKEN_MIGRATION = 124;
|
||||||
static final int GROUP_ADD_MIGRATION = 125;
|
static final int GROUP_ADD_MIGRATION = 125;
|
||||||
|
static final int SSRE2_CAPABILITY = 126;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int CURRENT_VERSION = 125;
|
public static final int CURRENT_VERSION = 126;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||||
@@ -768,6 +769,10 @@ public class ApplicationMigrations {
|
|||||||
jobs.put(Version.GROUP_ADD_MIGRATION, new DatabaseMigrationJob());
|
jobs.put(Version.GROUP_ADD_MIGRATION, new DatabaseMigrationJob());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lastSeenVersion < Version.SSRE2_CAPABILITY) {
|
||||||
|
jobs.put(Version.SSRE2_CAPABILITY, new AttributesMigrationJob());
|
||||||
|
}
|
||||||
|
|
||||||
return jobs;
|
return jobs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user