Ver código fonte

[mob] Fix indexing trigger for iOS

Neeraj Gupta 1 ano atrás
pai
commit
b00ee96dde

+ 2 - 2
mobile/lib/services/machine_learning/face_ml/face_ml_service.dart

@@ -142,7 +142,7 @@ class FaceMlService {
           }
           }
         });
         });
       } else {
       } else {
-        if (!kDebugMode) {
+        if (kDebugMode) {
           unawaited(indexAllImages());
           unawaited(indexAllImages());
         }
         }
       }
       }
@@ -155,7 +155,7 @@ class FaceMlService {
 
 
   void listenIndexOnDiffSync() {
   void listenIndexOnDiffSync() {
     Bus.instance.on<DiffSyncCompleteEvent>().listen((event) async {
     Bus.instance.on<DiffSyncCompleteEvent>().listen((event) async {
-      if (LocalSettings.instance.isFaceIndexingEnabled == false || kDebugMode) {
+      if (LocalSettings.instance.isFaceIndexingEnabled == false) {
         return;
         return;
       }
       }
       // [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user
       // [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user