mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix thumbnail job precondition.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user