Improve handling of invalid incrementalMac during backup import

This commit is contained in:
trevor-signal
2025-09-17 18:51:21 -04:00
committed by GitHub
parent c98a346b0c
commit 4dccbdb5fb

View File

@@ -834,6 +834,9 @@ export async function runDownloadAttachmentJobInner({
); );
return { downloadedVariant: AttachmentVariant.Default }; return { downloadedVariant: AttachmentVariant.Default };
} catch (error) { } catch (error) {
if (isIncrementalMacVerificationError(error)) {
throw error;
}
if (mightHaveBackupThumbnailToDownload && !attemptBackupThumbnailFirst) { if (mightHaveBackupThumbnailToDownload && !attemptBackupThumbnailFirst) {
log.error( log.error(
`${logId}: failed to download fullsize attachment, falling back to backup thumbnail`, `${logId}: failed to download fullsize attachment, falling back to backup thumbnail`,