Handle the sender key capability better.

This commit is contained in:
Greyson Parrelli
2021-06-09 09:56:21 -04:00
parent 335ff61011
commit 7833d7c99a
3 changed files with 10 additions and 3 deletions

View File

@@ -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;
}