From 2432631fb9bd93ee1f476897cd0d21a635f952b0 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Wed, 10 Sep 2025 12:34:25 -0400 Subject: [PATCH] Clarify resumable download paths --- ts/textsecure/downloadAttachment.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {