π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Fetch remote entities before running clustering
Neeraj Guptabb3a37adf52e
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 266afa0987..4f86e3d1e3 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@@ -85,6 +85,7 @@ class PersonService {}Future<void> storeRemoteFeedback() async {+ await entityService.syncEntities();final entities = await entityService.getEntities(EntityType.person);entities.sort((a, b) => a.updatedAt.compareTo(b.updatedAt));final Map<String, int> faceIdToClusterID = {};diff --git a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart b/mobile/lib/ui/settings/debug/face_debug_section_widget.dartindex 349d806fdf..882fc0b3b7 100644--- a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart@@ -161,11 +161,16 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {trailingIcon: Icons.chevron_right_outlined,trailingIconIsMuted: true,onTap: () async {- await PersonService.instance.storeRemoteFeedback();- await FaceMlService.instance- .clusterAllImages(clusterInBuckets: true);- Bus.instance.fire(PeopleChangedEvent());- showShortToast(context, "Done");+ try {+ await PersonService.instance.storeRemoteFeedback();+ await FaceMlService.instance+ .clusterAllImages(clusterInBuckets: true);+ Bus.instance.fire(PeopleChangedEvent());+ showShortToast(context, "Done");+ } catch (e, s) {+ _logger.warning('clustering failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }},),sectionOptionSpacing,