Clarify resumable download paths

This commit is contained in:
trevor-signal
2025-09-10 12:34:25 -04:00
committed by GitHub
parent 4bb3825cb7
commit 2432631fb9

View File

@@ -137,10 +137,15 @@ export async function downloadAttachment(
let downloadResult: Awaited<ReturnType<typeof downloadToDisk>>;
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) {