Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] add feature enabled guard to _scheduleTimelinesForMemoriesStrip

Priyanshu Dangare759b03af239c
diff --git a/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart b/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart
index 30dc42e44e..80abee711a 100644
--- a/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart
+++ b/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart
@@ -903,6 +903,9 @@ class MemoryLaneService {
}
Future<void> _scheduleTimelinesForMemoriesStrip() async {
+ if (!isFeatureEnabled) {
+ return;
+ }
final scheduleWindowMs = MemoryLaneSchedule.displayDuration.inMicroseconds;
final cooldownMs = const Duration(days: 30).inMicroseconds;
final cache = await _cacheService.getCache();