Fix crash when no recent recipients for profile refresh.

Fixes #14791
This commit is contained in:
Cody Henthorne
2026-05-21 15:36:29 -04:00
parent 86e49cd564
commit 00d86101f5
@@ -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