π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] rename clusterIDs to newClusterIDs in people changed event params
Priyanshu Dangare4a7fe1386352
diff --git a/mobile/apps/photos/lib/events/people_changed_event.dart b/mobile/apps/photos/lib/events/people_changed_event.dartindex 78453b4649..eb80581b72 100644--- a/mobile/apps/photos/lib/events/people_changed_event.dart+++ b/mobile/apps/photos/lib/events/people_changed_event.dart@@ -8,7 +8,7 @@ class PeopleChangedEvent extends Event {final PeopleEventType type;final String source;final PersonEntity? person;- final Set<String>? clusterIDs;+ final Set<String>? newClusterIDs;PeopleChangedEvent({this.relevantFiles,@@ -16,7 +16,7 @@ class PeopleChangedEvent extends Event {this.type = PeopleEventType.defaultType,this.source = "",this.person,- this.clusterIDs,+ this.newClusterIDs,});@overridediff --git a/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dartindex 7bef372974..7499ae295b 100644--- a/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart+++ b/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart@@ -1277,7 +1277,7 @@ class ClusterFeedbackService<T> {PeopleChangedEvent(type: PeopleEventType.automaticallyMergedClustersIntoPerson,person: p,- clusterIDs: suggestions.map((s) => s.$1).toSet(),+ newClusterIDs: suggestions.map((s) => s.$1).toSet(),),);}diff --git a/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart b/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dartindex aa8d24d4f3..1cccaaf879 100644--- a/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart+++ b/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart@@ -864,7 +864,7 @@ class MemoryLaneService {if (event.type == PeopleEventType.addedClusterToPerson) {clusterIDs.add(event.source);}- clusterIDs.addAll(event.clusterIDs ?? {});+ clusterIDs.addAll(event.newClusterIDs ?? {});if (event.person case final person?) {clusterIDs.addAll(person.data.assigned.map((cluster) => cluster.id));}