Add support for PNI registration ids and PNP change number.

This commit is contained in:
Cody Henthorne
2022-08-03 11:50:16 -04:00
parent 0d3ea22641
commit 83b97d274f
54 changed files with 1273 additions and 188 deletions

View File

@@ -105,9 +105,10 @@ public class ApplicationMigrations {
static final int MY_STORY_PRIVACY_MODE = 61;
static final int REFRESH_EXPIRING_CREDENTIAL = 62;
static final int EMOJI_SEARCH_INDEX_10 = 63;
static final int REFRESH_PNI_REGISTRATION_ID = 64;
}
public static final int CURRENT_VERSION = 63;
public static final int CURRENT_VERSION = 64;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -461,6 +462,10 @@ public class ApplicationMigrations {
jobs.put(Version.EMOJI_SEARCH_INDEX_10, new EmojiDownloadMigrationJob());
}
if (lastSeenVersion < Version.REFRESH_PNI_REGISTRATION_ID) {
jobs.put(Version.REFRESH_PNI_REGISTRATION_ID, new AttributesMigrationJob());
}
return jobs;
}