remove ClosedGroupUpdateMessageSendJob in database

This commit is contained in:
Ryan ZHAO 2021-02-18 10:59:31 +11:00
parent b85c9eb781
commit 568fddf91d

View File

@ -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();