Skip to content

armgit / ente

Public Imported from GitHub
0

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

Lower on this day requirements

laurenspriem0df7b20fae70
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index 7e5f94ba23..f523ecc48b 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -1699,14 +1699,7 @@ class SmartMemoriesService {
if (memories == null) continue;
if (memories.length < 5) continue;
final years = daysToYears[day]!;
- if (years.toSet().length < 3) continue;
- final yearCounts = <int, int>{};
- for (final year in years) {
- yearCounts[year] = (yearCounts[year] ?? 0) + 1;
- }
- final bool hasThreeInAtLeastThreeYears =
- yearCounts.values.where((count) => count >= 3).length >= 3;
- if (!hasThreeInAtLeastThreeYears) continue;
+ if (years.toSet().length < 2) continue;
final filteredMemories = <Memory>[];
if (memories.length > 20) {