Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix fix trigger for iOS

laurenspriembd2825402133
diff --git a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart
index f000218793..9eee02c30b 100644
--- a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart
+++ b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart
@@ -142,7 +142,7 @@ class FaceMlService {
}
});
} else {
- if (kDebugMode) {
+ if (!kDebugMode) {
unawaited(indexAndClusterAll());
}
}
@@ -155,7 +155,7 @@ class FaceMlService {
void listenIndexOnDiffSync() {
Bus.instance.on<DiffSyncCompleteEvent>().listen((event) async {
- if (LocalSettings.instance.isFaceIndexingEnabled == false) {
+ if (LocalSettings.instance.isFaceIndexingEnabled == false || kDebugMode) {
return;
}
// [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user