mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Clarify resumable download paths
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user