Skip to content

armgit / ente

Public Imported from GitHub
0

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

Gate pet indexing on local indexing being enabled

Amrithesh Kakkoth Ente996d0ac166a1
diff --git a/mobile/apps/photos/lib/utils/ml_util.dart b/mobile/apps/photos/lib/utils/ml_util.dart
index 435c6e23de..88914e0d5f 100644
--- a/mobile/apps/photos/lib/utils/ml_util.dart
+++ b/mobile/apps/photos/lib/utils/ml_util.dart
@@ -113,6 +113,7 @@ Future<List<FileMLInstruction>> getFilesForMlIndexing() async {
await mlDataDB.clipIndexedFileWithVersion();
final bool petEnabled = flagService.internalUser &&
localSettings.petRecognitionEnabled &&
+ localSettings.isMLLocalIndexingEnabled &&
(flagService.useRustForML || isOfflineMode);
final Map<int, int> petIndexedFileIDs =
petEnabled ? await mlDataDB.petIndexedFileIds() : const {};