π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Await on _resetEmailToNameCache so that PeopleChangedEvent is fired only after cache is updated. Else there is chance that UI is rebuild on PeopleChangedEvent with stale state of EmailToNameCahce
ashilknda582a243680
diff --git a/mobile/lib/services/machine_learning/face_ml/person/person_service.dart b/mobile/lib/services/machine_learning/face_ml/person/person_service.dartindex d5b6956cdc..3f2441b766 100644--- a/mobile/lib/services/machine_learning/face_ml/person/person_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/person/person_service.dart@@ -202,7 +202,7 @@ class PersonService {clusterID: clusterID,);if (data.email != null) {- _resetEmailToNameCache();+ await _resetEmailToNameCache();}return PersonEntity(result.id, data);}@@ -291,7 +291,7 @@ class PersonService {justName.data.logStats();if (entity.data.email != null) {- _resetEmailToNameCache();+ await _resetEmailToNameCache();}} else {await entityService.deleteEntry(personID);@@ -299,7 +299,7 @@ class PersonService {if (entity != null) {if (entity.data.email != null) {- _resetEmailToNameCache();+ await _resetEmailToNameCache();}}}