mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-28 11:37:05 +00:00
Deprecate usage of the signaling key.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user