Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update sync time from all diff entries including deletions

Manav Rathif7f5248a2b04
diff --git a/web/apps/embed/src/services/public-collection.ts b/web/apps/embed/src/services/public-collection.ts
index 880bed80a4..82397fff63 100644
--- a/web/apps/embed/src/services/public-collection.ts
+++ b/web/apps/embed/src/services/public-collection.ts
@@ -179,8 +179,8 @@ export const pullPublicCollectionFiles = async (
savePublicCollectionFiles(credentials.accessToken, newFiles);
- if (files.length > 0) {
- time = Math.max(...files.map((f) => f.updationTime));
+ if (diff.length > 0) {
+ time = Math.max(...diff.map((f) => f.updationTime));
savePublicCollectionLastSyncTime(credentials.accessToken, time);
}