Skip to content

armgit / ente

Public Imported from GitHub
0

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

Filter out deleted files before decryption in embed app

Manav Rathi4230e81ec08d
diff --git a/web/apps/embed/src/services/public-collection.ts b/web/apps/embed/src/services/public-collection.ts
index 6c0cf23c5a..880bed80a4 100644
--- a/web/apps/embed/src/services/public-collection.ts
+++ b/web/apps/embed/src/services/public-collection.ts
@@ -164,7 +164,9 @@ export const pullPublicCollectionFiles = async (
);
const files = await Promise.all(
- diff.map((f) => decryptRemoteFile(f, collection.key)),
+ diff
+ .filter((f) => !f.isDeleted)
+ .map((f) => decryptRemoteFile(f, collection.key)),
);
const existingFiles = savedPublicCollectionFiles(