mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-06 13:31:18 +01:00
Fix profile fetch crash when skipping debounce.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user