Fix thumbnail job precondition.

This commit is contained in:
Greyson Parrelli
2025-09-03 15:44:04 -04:00
parent 807d10837b
commit 1c9d68a932

View File

@@ -108,7 +108,12 @@ class ArchiveThumbnailUploadJob private constructor(
return Result.success()
}
if (attachment.remoteDigest == null && attachment.dataHash == null && attachment.hadIntegrityCheckPerformed()) {
if (attachment.dataHash == null || attachment.remoteKey == null) {
Log.w(TAG, "$attachmentId is missing necessary ingredients for a mediaName!")
return Result.success()
}
if (!attachment.hadIntegrityCheckPerformed()) {
Log.w(TAG, "$attachmentId has no integrity check! Cannot proceed.")
return Result.success()
}