Improve attachment option handling

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-07-23 11:41:20 -05:00 committed by GitHub
parent 3a17da10e8
commit 1848079e47
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) { switch (type) {
case 'local': case 'local':
case 'backupThumbnail': case 'backupThumbnail':
log.info( // Skip digest check
`${logId}: skipping digest check since this is a ${type} attachment`
);
break; break;
case 'standard': case 'standard':
if (!constantTimeEqual(ourDigest, options.theirDigest)) { if (!constantTimeEqual(ourDigest, options.theirDigest)) {