mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 11:51:10 +01:00
Handle the sender key capability better.
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 = 35;
|
||||
public static final int CURRENT_VERSION = 36;
|
||||
|
||||
private static final class Version {
|
||||
static final int LEGACY = 1;
|
||||
@@ -77,6 +77,7 @@ public class ApplicationMigrations {
|
||||
static final int SMS_STORAGE_SYNC = 33;
|
||||
static final int APPLY_UNIVERSAL_EXPIRE = 34;
|
||||
static final int SENDER_KEY = 35;
|
||||
static final int SENDER_KEY_2 = 36;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -327,6 +328,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.SENDER_KEY, new AttributesMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.SENDER_KEY_2) {
|
||||
jobs.put(Version.SENDER_KEY_2, new AttributesMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user