Skip to content

armgit / ente

Public Imported from GitHub
0

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

Specify birthdays clearer

laurenspriemfa37b11c7f83
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index 4593a0c63c..6e505cd91b 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -686,9 +686,19 @@ class SmartMemoriesService {
if (youAndThemMem != null) {
memoryResults.add(
youAndThemMem.copyWith(
+ isBirthday: false,
+ newAge: newAge,
firstDateToShow: thisBirthday
.subtract(const Duration(days: 5))
.microsecondsSinceEpoch,
+ lastDateToShow: thisBirthday.microsecondsSinceEpoch,
+ ),
+ );
+ memoryResults.add(
+ youAndThemMem.copyWith(
+ isBirthday: true,
+ newAge: newAge,
+ firstDateToShow: thisBirthday.microsecondsSinceEpoch,
lastDateToShow:
thisBirthday.add(kDayItself).microsecondsSinceEpoch,
),