Do not download attachment if we do not have a digest.

This commit is contained in:
Nicholas Tinsley
2024-07-02 11:44:04 -04:00
committed by Cody Henthorne
parent cf7ebfa03d
commit 585401a98e

View File

@@ -359,7 +359,7 @@ class AttachmentDownloadJob private constructor(
if (attachment.remoteDigest != null) {
Log.i(TAG, "Downloading attachment with digest: " + Hex.toString(attachment.remoteDigest))
} else {
Log.i(TAG, "Downloading attachment with no digest...")
throw InvalidPartException("Null remote digest for $attachmentId")
}
SignalServiceAttachmentPointer(