π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Sync after dedup
Manav Rathib09d6ab2a6c0
diff --git a/web/packages/new/photos/services/dedup.ts b/web/packages/new/photos/services/dedup.tsindex e8942146be..6d6e59e485 100644--- a/web/packages/new/photos/services/dedup.ts+++ b/web/packages/new/photos/services/dedup.ts@@ -11,6 +11,7 @@ import {} from "./collection";import { getLocalCollections } from "./collections";import { getLocalFiles } from "./files";+import { syncFilesAndCollections } from "./sync";/*** A group of duplicates as shown in the UI.@@ -270,7 +271,7 @@ export const removeSelectedDuplicateGroups = async (}let np = 0;- const ntotal = filesToAdd.size + filesToTrash.length ? 1 : 0;+ const ntotal = filesToAdd.size + filesToTrash.length ? 1 : 0 + /* sync */ 1;const tickProgress = () => onProgress((np++ / ntotal) * 100);// Process the adds.@@ -290,6 +291,9 @@ export const removeSelectedDuplicateGroups = async (tickProgress();}+ await syncFilesAndCollections();+ tickProgress();+return new Set(selectedDuplicateGroups.map((g) => g.id));};