Fix query for enqueuing thumbnail jobs.

This commit is contained in:
Greyson Parrelli
2025-09-12 10:50:07 -04:00
parent b2e3d7ba20
commit 299445d5f9
2 changed files with 1 additions and 3 deletions

View File

@@ -860,7 +860,7 @@ class AttachmentTable(
.where(
"""
$ARCHIVE_TRANSFER_STATE = ${ArchiveTransferState.FINISHED.value} AND
$ARCHIVE_THUMBNAIL_TRANSFER_STATE = ${ArchiveTransferState.NONE.value} AND
$ARCHIVE_THUMBNAIL_TRANSFER_STATE IN (${ArchiveTransferState.NONE.value}, ${ArchiveTransferState.TEMPORARY_FAILURE.value}) AND
$QUOTE = 0 AND
($CONTENT_TYPE LIKE 'image/%' OR $CONTENT_TYPE LIKE 'video/%') AND
$CONTENT_TYPE != 'image/svg+xml'

View File

@@ -129,7 +129,6 @@ class BackupMediaSnapshotTable(context: Context, database: SignalDatabase) : Dat
/**
* Writes the set of full-size media items that are slated to be referenced in the next backup, updating their pending sync time.
* Will insert multiple rows per object -- one for the main item, and one for the thumbnail.
*/
fun writeFullSizePendingMediaObjects(mediaObjects: Sequence<ArchiveMediaItem>) {
mediaObjects
@@ -143,7 +142,6 @@ class BackupMediaSnapshotTable(context: Context, database: SignalDatabase) : Dat
/**
* Writes the set of thumbnail media items that are slated to be referenced in the next backup, updating their pending sync time.
* Will insert multiple rows per object -- one for the main item, and one for the thumbnail.
*/
fun writeThumbnailPendingMediaObjects(mediaObjects: Sequence<ArchiveMediaItem>) {
mediaObjects