mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Remove explicit indexed by statement from approximate exportable message count.
This commit is contained in:
committed by
Greyson Parrelli
parent
6d5be0b445
commit
a577018d03
@@ -1816,7 +1816,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
|
||||
val queries = SqlUtil.buildCollectionQuery(THREAD_ID, threadIds)
|
||||
return queries.sumOf {
|
||||
readableDatabase.count()
|
||||
.from("$TABLE_NAME INDEXED BY $INDEX_THREAD_COUNT")
|
||||
.from(TABLE_NAME)
|
||||
.where(it.where, it.whereArgs)
|
||||
.run()
|
||||
.readToSingleLong(0L)
|
||||
|
||||
Reference in New Issue
Block a user