Fix query selection crash during backup.

This commit is contained in:
Greyson Parrelli
2025-10-31 11:09:32 -04:00
committed by jeffrey-signal
parent 89e6479021
commit 95c9776b4d

View File

@@ -883,7 +883,7 @@ class AttachmentTable(
*/
fun getThumbnailsThatNeedArchiveUpload(): List<AttachmentId> {
return readableDatabase
.select(ID)
.select("$TABLE_NAME.$ID")
.from("$TABLE_NAME INNER JOIN ${MessageTable.TABLE_NAME} ON $TABLE_NAME.$MESSAGE_ID = ${MessageTable.TABLE_NAME}.${MessageTable.ID}")
.where(
"""