Skip to content

armgit / ente

Public Imported from GitHub
0

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

Separate flag for stale file ML fix

laurenspriem84e47e919c3f
diff --git a/mobile/apps/photos/lib/utils/ml_util.dart b/mobile/apps/photos/lib/utils/ml_util.dart
index 0c95fc025a..4f21dedcfb 100644
--- a/mobile/apps/photos/lib/utils/ml_util.dart
+++ b/mobile/apps/photos/lib/utils/ml_util.dart
@@ -538,7 +538,7 @@ Future<List<FileMLInstruction>> hydrateRemoteMLDataForInstructions(
return instructions.where((instruction) => instruction.pendingML).toList();
}
_logger.info("fetching embeddings for ${ids.length} files");
- final res = flagService.internalUser
+ final res = flagService.mLHydrationStaleFileRecovery
? await _fetchFilesDataForMlHydrationWithRecovery(pendingIndex)
: await fileDataService.getFilesData(ids);
_logger.info("embeddingResponse ${res.debugLog()}");
diff --git a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
index bba6e318f5..1e342691cc 100644
--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
@@ -122,6 +122,8 @@ class FlagService {
bool get syncRecoveryDiagnostics => internalUser;
+ bool get mLHydrationStaleFileRecovery => internalUser;
+
Future<void> tryRefreshFlags() async {
try {
await _fetch();