Skip to content

armgit / ente

Public Imported from GitHub
0

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

[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.dart
index 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];
}