From 568fddf91d3be12df5187e72ba2729097631ce70 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Thu, 18 Feb 2021 10:59:31 +1100 Subject: [PATCH] remove ClosedGroupUpdateMessageSendJob in database --- .../securesms/database/helpers/SQLCipherOpenHelper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java b/app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java index 650d688a65..91d3263ac8 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java +++ b/app/src/main/java/org/thoughtcrime/securesms/database/helpers/SQLCipherOpenHelper.java @@ -56,9 +56,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper { private static final int lokiV18_CLEAR_BG_POLL_JOBS = 39; private static final int lokiV19 = 40; private static final int lokiV20 = 41; + private static final int lokiV21 = 42; // Loki - onUpgrade(...) must be updated to use Loki version numbers if Signal makes any database changes - private static final int DATABASE_VERSION = lokiV20; + private static final int DATABASE_VERSION = lokiV21; private static final String DATABASE_NAME = "signal.db"; private final Context context; @@ -252,6 +253,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper { ); } + if (oldVersion < lokiV21) { + deleteJobRecords(db, "ClosedGroupUpdateMessageSendJob"); + } + db.setTransactionSuccessful(); } finally { db.endTransaction();