π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[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.dartindex 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();}}