Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Cancel on this day notifications

laurenspriem077ff2306c11
diff --git a/mobile/apps/photos/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dart
index 5280047c3c..45fe2c4cb8 100644
--- a/mobile/apps/photos/lib/services/memories_cache_service.dart
+++ b/mobile/apps/photos/lib/services/memories_cache_service.dart
@@ -94,6 +94,13 @@ class MemoriesCacheService {
Future<void> setShowAnyMemories(bool value) async {
await _prefs.setBool(_showAnyMemoryKey, value);
Bus.instance.fire(MemoriesSettingChanged());
+ if (!value) {
+ await Future.wait([
+ _clearAllScheduledOnThisDayNotifications(),
+ ]);
+ } else {
+ queueUpdateCache();
+ }
}
bool get enableSmartMemories =>