Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] fix issue where memory lane cards are displayed even if crops are not available

Priyanshu Dangare7cef9c885eb2
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 25964c82ae..2bda472e57 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
@@ -296,10 +296,10 @@ class MemoryLaneService {
return null;
}
- if (!await areFullFaceCropsCached({
- timeline.entries.first.faceId,
- timeline.entries.last.faceId,
- }, useTempCache: false)) {
+ if (!await areFullFaceCropsCached(
+ timeline.entries.map((entry) => entry.faceId),
+ useTempCache: false,
+ )) {
return null;
}
return timeline;