π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Fix
laurensprieme459da3908b2
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dartindex d8a5b33c87..964c82127e 100644--- a/mobile/lib/services/smart_memories_service.dart+++ b/mobile/lib/services/smart_memories_service.dart@@ -1131,7 +1131,8 @@ class SmartMemoriesService {final windowEnd =currentTime.add(kMemoriesUpdateFrequency).microsecondsSinceEpoch;final currentYear = currentTime.year;- final cutOffTime = currentTime.subtract(const Duration(days: 365));+ final cutOffTime = currentTime+ .subtract(const Duration(days: 364) - kMemoriesUpdateFrequency);final timeTillYearEnd = DateTime(currentYear + 1).difference(currentTime);final bool almostYearEnd = timeTillYearEnd < kMemoriesUpdateFrequency;