Deprecate usage of the signaling key.

This commit is contained in:
Greyson Parrelli
2019-01-17 15:36:53 -08:00
parent 57ef0e9024
commit e6b4249cf3
4 changed files with 11 additions and 10 deletions

View File

@@ -95,6 +95,7 @@ public class DatabaseUpgradeActivity extends BaseActivity {
public static final int WORKMANAGER_MIGRATION = 408;
public static final int COLOR_MIGRATION = 412;
public static final int UNIDENTIFIED_DELIVERY = 422;
public static final int SIGNALING_KEY_DEPRECATION = 447;
private static final SortedSet<Integer> UPGRADE_VERSIONS = new TreeSet<Integer>() {{
add(NO_MORE_KEY_EXCHANGE_PREFIX_VERSION);
@@ -121,6 +122,7 @@ public class DatabaseUpgradeActivity extends BaseActivity {
add(WORKMANAGER_MIGRATION);
add(COLOR_MIGRATION);
add(UNIDENTIFIED_DELIVERY);
add(SIGNALING_KEY_DEPRECATION);
}};
private MasterSecret masterSecret;
@@ -371,6 +373,13 @@ public class DatabaseUpgradeActivity extends BaseActivity {
.add(new RefreshAttributesJob(context));
}
if (params[0] < SIGNALING_KEY_DEPRECATION) {
Log.i(TAG, "Scheduling a RefreshAttributesJob to remove the signaling key remotely.");
ApplicationContext.getInstance(context)
.getJobManager()
.add(new RefreshAttributesJob(context));
}
return null;
}