π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
assigned and rejected should not intersect
Manav Rathic120ab0596b1
diff --git a/web/packages/new/photos/services/ml/people.ts b/web/packages/new/photos/services/ml/people.tsindex f06f633779..30f24e390b 100644--- a/web/packages/new/photos/services/ml/people.ts+++ b/web/packages/new/photos/services/ml/people.ts@@ -656,7 +656,6 @@ export const _applyPersonSuggestionUpdates = async (const localClusters = await savedFaceClusters();let assignedClusters = [...cgroup.data.assigned];- const newlyAssignedFaceIDs = new Set();let rejectedClusterIDs = await savedRejectedClustersForCGroup(cgroup.id);let newlyRejectedFaceIDs: string[] = [];@@ -670,7 +669,6 @@ export const _applyPersonSuggestionUpdates = async (const assign = (clusterID: string) => {const cluster = clusterWithID(clusterID);assignedClusters.push(cluster);- cluster.faces.forEach((id) => newlyAssignedFaceIDs.add(id));assignUpdateCount += 1;};@@ -748,9 +746,8 @@ export const _applyPersonSuggestionUpdates = async (if (assignUpdateCount > 0 || newlyRejectedFaceIDs.length > 0) {const assigned = assignedClusters;- const rejectedFaceIDs = cgroup.data.rejectedFaceIDs- .concat(newlyRejectedFaceIDs)- .filter((id) => !newlyAssignedFaceIDs.has(id));+ const rejectedFaceIDs =+ cgroup.data.rejectedFaceIDs.concat(newlyRejectedFaceIDs);await updateOrCreateUserEntities("cgroup",[