From 54bbe488693d3885d249a68a896cc97db37f2e94 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 13 Jan 2025 12:41:33 -0500 Subject: [PATCH] Add app migration for SSRE2 capability. --- .../securesms/migrations/ApplicationMigrations.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/migrations/ApplicationMigrations.java b/app/src/main/java/org/thoughtcrime/securesms/migrations/ApplicationMigrations.java index 49f848f65f..00f2d102c9 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/migrations/ApplicationMigrations.java +++ b/app/src/main/java/org/thoughtcrime/securesms/migrations/ApplicationMigrations.java @@ -167,9 +167,10 @@ public class ApplicationMigrations { static final int BAD_E164_FIX = 123; static final int GPB_TOKEN_MIGRATION = 124; static final int GROUP_ADD_MIGRATION = 125; + static final int SSRE2_CAPABILITY = 126; } - public static final int CURRENT_VERSION = 125; + public static final int CURRENT_VERSION = 126; /** * This *must* be called after the {@link JobManager} has been instantiated, but *before* the call @@ -768,6 +769,10 @@ public class ApplicationMigrations { jobs.put(Version.GROUP_ADD_MIGRATION, new DatabaseMigrationJob()); } + if (lastSeenVersion < Version.SSRE2_CAPABILITY) { + jobs.put(Version.SSRE2_CAPABILITY, new AttributesMigrationJob()); + } + return jobs; }