π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Make sure indexing is paused instantly
laurenspriem04048b20feb7
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.dartindex 5a16b8d9e9..2fa0f9c871 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@@ -303,6 +303,10 @@ class FaceMlService {return _functionLock.synchronized(() async {_resetInactivityTimer();+ if (_shouldPauseIndexingAndClustering) {+ return null;+ }+final completer = Completer<dynamic>();final answerPort = ReceivePort();@@ -811,9 +815,11 @@ class FaceMlService {// disposeImageIsolateAfterUse: false,);if (result == null) {- _logger.severe(- "Failed to analyze image with uploadedFileID: ${enteFile.uploadedFileID}",- );+ if (!_shouldPauseIndexingAndClustering) {+ _logger.severe(+ "Failed to analyze image with uploadedFileID: ${enteFile.uploadedFileID}",+ );+ }return false;}final List<Face> faces = [];@@ -942,7 +948,9 @@ class FaceMlService {),) as String?;if (resultJsonString == null) {- _logger.severe('Analyzing image in isolate is giving back null');+ if (!_shouldPauseIndexingAndClustering) {+ _logger.severe('Analyzing image in isolate is giving back null');+ }return null;}result = FaceMlResult.fromJsonString(resultJsonString);