Skip to content

armgit / ente

Public Imported from GitHub
0

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

Preserve rejected faces when copying person data

laurenspriem5df70b10f921
diff --git a/mobile/apps/photos/lib/models/ml/face/person.dart b/mobile/apps/photos/lib/models/ml/face/person.dart
index d2390a0bb6..3a7a5727a8 100644
--- a/mobile/apps/photos/lib/models/ml/face/person.dart
+++ b/mobile/apps/photos/lib/models/ml/face/person.dart
@@ -92,6 +92,7 @@ class PersonData {
String? birthDate,
String? email,
int? userID,
+ List<String>? rejectedFaceIDs,
}) {
return PersonData(
name: name ?? this.name,
@@ -101,6 +102,8 @@ class PersonData {
birthDate: birthDate ?? this.birthDate,
email: email ?? this.email,
userID: userID ?? this.userID,
+ rejectedFaceIDs:
+ rejectedFaceIDs ?? List<String>.from(this.rejectedFaceIDs),
);
}