Improve attachment option handling

This commit is contained in:
Fedor Indutny 2024-07-23 07:19:32 -07:00 committed by GitHub
parent 5fccf87eaa
commit 168397d8ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -404,9 +404,7 @@ export async function decryptAttachmentV2ToSink(
switch (type) {
case 'local':
case 'backupThumbnail':
log.info(
`${logId}: skipping digest check since this is a ${type} attachment`
);
// Skip digest check
break;
case 'standard':
if (!constantTimeEqual(ourDigest, options.theirDigest)) {