diff --git a/ts/textsecure/downloadAttachment.ts b/ts/textsecure/downloadAttachment.ts index 1812146e24..c98161acd3 100644 --- a/ts/textsecure/downloadAttachment.ts +++ b/ts/textsecure/downloadAttachment.ts @@ -137,10 +137,15 @@ export async function downloadAttachment( let downloadResult: Awaited>; - let { downloadPath } = attachment; + let downloadPath = + options.variant === AttachmentVariant.Default + ? attachment.downloadPath + : undefined; + const absoluteDownloadPath = downloadPath ? window.Signal.Migrations.getAbsoluteDownloadsPath(downloadPath) : undefined; + let downloadOffset = 0; if (absoluteDownloadPath) {