Skip to content

armgit / ente

Public Imported from GitHub
0

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

Exclude pet progress from index status when local indexing is off

Amrithesh Kakkoth Ente048675f744ee
diff --git a/mobile/apps/photos/lib/utils/ml_util.dart b/mobile/apps/photos/lib/utils/ml_util.dart
index 88914e0d5f..f8d4229b72 100644
--- a/mobile/apps/photos/lib/utils/ml_util.dart
+++ b/mobile/apps/photos/lib/utils/ml_util.dart
@@ -79,6 +79,7 @@ Future<IndexStatus> getIndexStatus() async {
int indexedFiles = math.min(facesIndexedFiles, clipIndexedFiles);
if (flagService.internalUser &&
localSettings.petRecognitionEnabled &&
+ localSettings.isMLLocalIndexingEnabled &&
(flagService.useRustForML || isOfflineMode)) {
final int petIndexedFiles = await mlDataDB.getPetIndexedFileCount();
indexedFiles = math.min(indexedFiles, petIndexedFiles);