diff --git a/mobile/lib/services/face_ml/face_ml_service.dart b/mobile/lib/services/face_ml/face_ml_service.dart index 135282339..14ae63c9f 100644 --- a/mobile/lib/services/face_ml/face_ml_service.dart +++ b/mobile/lib/services/face_ml/face_ml_service.dart @@ -118,7 +118,12 @@ class FaceMlService { if (LocalSettings.instance.isFaceIndexingEnabled == false) { return; } - unawaited(indexAllImages()); + // [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user + // to disable face-indexing in case it's causing crash. In the future, we + // should have a better way to handle this. + Future.delayed(const Duration(seconds: 10), () { + unawaited(indexAllImages()); + }); }); }