Make logging more accurate.

This commit is contained in:
Greyson Parrelli
2026-01-09 12:08:42 -05:00
committed by Michelle Tang
parent 98580e6a6b
commit 73ea50d162

View File

@@ -217,8 +217,12 @@ class CopyAttachmentToArchiveJob private constructor(private val attachmentId: A
ArchiveDatabaseExecutor.throttledNotifyAttachmentObservers()
}
if (!isCanceled && !attachment.quote) {
ArchiveThumbnailUploadJob.enqueueIfNecessary(attachmentId)
if (!isCanceled) {
if (!attachment.quote) {
ArchiveThumbnailUploadJob.enqueueIfNecessary(attachmentId)
} else {
Log.d(TAG, "[$attachmentId] Refusing to enqueue thumb for quote attachment.")
}
} else {
Log.d(TAG, "[$attachmentId] Refusing to enqueue thumb for canceled upload.")
}