Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Remove initial memories notification cutoff

aspizu997af1026f8e
diff --git a/mobile/apps/photos/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dart
index 922cd7b6d1..c3606cbe5e 100644
--- a/mobile/apps/photos/lib/services/memories_cache_service.dart
+++ b/mobile/apps/photos/lib/services/memories_cache_service.dart
@@ -726,11 +726,7 @@ class MemoriesCacheService {
localSettings.initialMemoriesNotificationScheduledAt() != null) {
return;
}
- final cutoff = DateTime.now()
- .subtract(const Duration(days: 21))
- .microsecondsSinceEpoch;
- if (cache.peopleShownLogs.any((log) => log.lastTimeShown <= cutoff) ||
- cache.clipShownLogs.any((log) => log.lastTimeShown <= cutoff)) {
+ if (cache.peopleShownLogs.isNotEmpty || cache.clipShownLogs.isNotEmpty) {
await localSettings.markInitialMemoriesNotificationScheduled();
}
}