π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge remote-tracking branch 'origin/main' into save_contact
Neeraj Gupta09953bbc34a4
diff --cc mobile/lib/models/ml/face/person.dartindex 678c3117c1,348915f017..3757246b80--- a/mobile/lib/models/ml/face/person.dart+++ b/mobile/lib/models/ml/face/person.dart@@@ -51,12 -51,8 +51,12 @@@ class PersonDatafinal bool isHidden;String? avatarFaceID;List<ClusterInfo>? assigned = List<ClusterInfo>.empty();- List<ClusterInfo>? rejected = List<ClusterInfo>.empty();+ List<String>? rejectedFaceIDs = List<String>.empty();final String? birthDate;+ // email should be always looked via userID as user might have changed+ // their email ids.+ final String? email;+ final int? userID;bool hasAvatar() => avatarFaceID != null;@@@ -87,11 -79,9 +87,11 @@@return PersonData(name: name ?? this.name,assigned: assigned ?? this.assigned,- avatarFaceID: avatarFaceId ?? this.avatarFaceID,+ avatarFaceID: avatarFaceId ?? avatarFaceID,isHidden: isHidden ?? this.isHidden,birthDate: birthDate ?? this.birthDate,+ email: email ?? this.email,+ userID: userID ?? this.userID,);}diff --cc mobile/lib/services/machine_learning/face_ml/person/person_service.dartindex 18bc07a38e,593a6628d1..78b1f4fcc5--- a/mobile/lib/services/machine_learning/face_ml/person/person_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/person/person_service.dart@@@ -321,11 -391,10 +391,11 @@@ class PersonServicefinal updatedPerson = person.copyWith(data: person.data.copyWith(avatarFaceId: face.faceID),);- await _updatePerson(updatedPerson);+ await updatePerson(updatedPerson);+ return updatedPerson;}- Future<void> updateAttributes(+ Future<PersonEntity> updateAttributes(String id, {String? name,String? avatarFaceId,@@@ -343,11 -412,10 +413,11 @@@birthDate: birthDate,),);- await _updatePerson(updatedPerson);+ await updatePerson(updatedPerson);+ return updatedPerson;}- Future<void> _updatePerson(PersonEntity updatePerson) async {+ Future<void> updatePerson(PersonEntity updatePerson) async {await entityService.addOrUpdate(EntityType.cgroup,updatePerson.data.toJson(),