Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(DownloadStatusNotification):message-fixed-when-single-file

Aswin Asokb6c39d30fef9
diff --git a/web/apps/photos/src/components/DownloadStatusNotifications.tsx b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
index e00714148b..30830bf9a1 100644
--- a/web/apps/photos/src/components/DownloadStatusNotifications.tsx
+++ b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
@@ -115,7 +115,7 @@ export const DownloadStatusNotifications: React.FC<
? failedTitle
: isSaveComplete(group)
? t("download_complete")
- : group.downloadDirPath
+ : group.downloadDirPath || group.total === 1
? t("downloading_album", { name: group.title })
: t("creating_zip", { name: group.title }),
caption: isSaveComplete(group)
diff --git a/web/packages/media/live-photo.ts b/web/packages/media/live-photo.ts
index 111d8a9e15..4830e23bd5 100644
--- a/web/packages/media/live-photo.ts
+++ b/web/packages/media/live-photo.ts
@@ -103,9 +103,7 @@ export const decodeLivePhoto = async (
);
if (!videoFileName || !videoData)
- throw new Error(
- `Decoded live photo ${fileName} does not have an image`,
- );
+ throw new Error(`Decoded live photo ${fileName} does not have a video`);
return { imageFileName, imageData, videoFileName, videoData };
};