From 82cbf830ae1014a897306a9bc1599f767019c7c3 Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:52:04 +1100 Subject: [PATCH] fix: need quotes on job type key --- app/build.gradle | 2 +- .../org/thoughtcrime/securesms/database/SessionJobDatabase.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6c0fdf3485..d6954c27e6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -31,7 +31,7 @@ configurations.all { exclude module: "commons-logging" } -def canonicalVersionCode = 357 +def canonicalVersionCode = 358 def canonicalVersionName = "1.17.3" def postFixSize = 10 diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/SessionJobDatabase.kt b/app/src/main/java/org/thoughtcrime/securesms/database/SessionJobDatabase.kt index 5e2aac23d4..591755b88f 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/SessionJobDatabase.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/database/SessionJobDatabase.kt @@ -29,7 +29,7 @@ class SessionJobDatabase(context: Context, helper: SQLCipherOpenHelper) : Databa = "CREATE TABLE $sessionJobTable ($jobID INTEGER PRIMARY KEY, $jobType STRING, $failureCount INTEGER DEFAULT 0, $serializedData TEXT);" const val dropAttachmentDownloadJobs = - "DELETE FROM $sessionJobTable WHERE $jobType = ${AttachmentDownloadJob.KEY};" + "DELETE FROM $sessionJobTable WHERE $jobType = '${AttachmentDownloadJob.KEY}';" } fun persistJob(job: Job) {