Skip to content

armgit / ente

Public Imported from GitHub
0

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

fixup! [mobile][photos] generate memory lane schedule on startup

Priyanshu Dangareaafb561ca250
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 d37c153b44..bc820a44de 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
@@ -962,13 +962,9 @@ class MemoryLaneService {
final invalid = <String>{};
for (final entry in cache.memoriesStripSchedule.entries) {
- final timeline = cache.timelines[entry.key];
final isInCooldown =
nowMicros - entry.value.beginShowingAt < cooldownMicros;
- if (timeline == null ||
- !timeline.isEligible ||
- timeline.entries.isEmpty ||
- (timeline.isCluster && !_topNClusters.contains(timeline.personId)) ||
+ if ((entry.value.isCluster && !_topNClusters.contains(entry.key)) ||
!isInCooldown) {
invalid.add(entry.key);
}