This commit is contained in:
Manav Rathi
2024-07-22 11:39:59 +05:30
parent f97d5b19d9
commit 5a79658e58

View File

@@ -468,9 +468,8 @@ async function downloadFileDesktop(
downloadDir: string,
) {
const fs = electron.fs;
const stream = (await DownloadManager.getFile(
file,
)) as ReadableStream<Uint8Array>;
const stream = await DownloadManager.getFile(file);
const updatedStream = await getUpdatedEXIFFileForDownload(file, stream);
if (file.metadata.fileType === FILE_TYPE.LIVE_PHOTO) {