π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Sketch
Manav Rathif9c101241e77
diff --git a/web/packages/new/photos/services/dedup.ts b/web/packages/new/photos/services/dedup.tsindex 8b87e95eb3..0c8d771f5d 100644--- a/web/packages/new/photos/services/dedup.ts+++ b/web/packages/new/photos/services/dedup.ts@@ -1,8 +1,9 @@+import { newID } from "@/base/id";import type { EnteFile } from "@/media/file";+import { wait } from "@/utils/promise";import { createCollectionNameByID } from "./collection";import { getLocalCollections } from "./collections";import { getLocalFiles, uniqueFilesByID } from "./files";-import { newID } from "@/base/id";/*** A group of duplicates as shown in the UI.@@ -129,3 +130,21 @@ export const deduceDuplicates = async () => {return duplicateGroups;};++/**+ * Remove duplicate groups that the user has retained from those that we+ * returned in {@link deduceDuplicates}.+ *+ * @param duplicateGroups A list of duplicate groups. This is the same list as+ * would've been returned from a previous call to {@link deduceDuplicates},+ * except (a) their sort order might've changed, and (b) the user may have+ * unselected some of them (i.e. isSelected for such items would be `false`).+ *+ * This function will only process entries for which isSelected is `true`.+ */+export const removeSelectedDuplicateGroups = async (+ duplicateGroups: DuplicateGroup[],+) => {+ console.log(duplicateGroups);+ await wait(1000);+};