π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Only return indexed files if local indexing is disabled
Neeraj Guptafd24628f7a11
diff --git a/mobile/lib/utils/ml_util.dart b/mobile/lib/utils/ml_util.dartindex cce482abc4..1237e0f9fe 100644--- a/mobile/lib/utils/ml_util.dart+++ b/mobile/lib/utils/ml_util.dart@@ -160,6 +160,9 @@ Future<List<FileMLInstruction>> getFilesForMlIndexing() async {_logger.info("Getting list of files to index for ML took ${DateTime.now().difference(time).inMilliseconds} ms",);+ if (!localSettings.isMLLocalIndexingEnabled) {+ return splitResult.matched;+ }return [...splitResult.matched, ...splitResult.unmatched];}