From c1b3fb6d1b8c4328869e7404165f96154ba1ce0e Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Sun, 24 May 2026 10:32:58 -0400 Subject: [PATCH] Fix profile fetch crash when skipping debounce. --- .../java/org/thoughtcrime/securesms/database/RecipientTable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/RecipientTable.kt b/app/src/main/java/org/thoughtcrime/securesms/database/RecipientTable.kt index 49b35f95de..344fb8658c 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/RecipientTable.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/database/RecipientTable.kt @@ -773,7 +773,7 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da return emptyList() } - val prefix = "($ACI_COLUMN NOT NULL OR $PNI_COLUMN NOT NULL) ${if (debounceThreshold != null) " AND ($LAST_PROFILE_FETCH < ${debounceThreshold.inWholeMilliseconds}) AND " else ""}" + val prefix = "($ACI_COLUMN NOT NULL OR $PNI_COLUMN NOT NULL) AND ${if (debounceThreshold != null) " ($LAST_PROFILE_FETCH < ${debounceThreshold.inWholeMilliseconds}) AND " else ""}" val idQuery = SqlUtil.buildFastCollectionQuery(ID, ids, prefix) return readableDatabase