From 00d86101f57c82cbb2cb002f41177242ab128d15 Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Thu, 21 May 2026 15:36:29 -0400 Subject: [PATCH] Fix crash when no recent recipients for profile refresh. Fixes #14791 --- .../org/thoughtcrime/securesms/database/RecipientTable.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 db242782ee..49b35f95de 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/RecipientTable.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/database/RecipientTable.kt @@ -3820,6 +3820,10 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da recipientsWithinInteractionThreshold.remove(Recipient.self().id) } + if (recipientsWithinInteractionThreshold.isEmpty()) { + return emptyList() + } + val select = SqlUtil.buildFastCollectionQuery(ID, recipientsWithinInteractionThreshold, "$LAST_PROFILE_FETCH < $lastProfileFetchThreshold AND") return readableDatabase