Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Recheck memories setting before notifying

aspizu12b93fb29ebf
diff --git a/mobile/apps/photos/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dart
index 42593e8db7..922cd7b6d1 100644
--- a/mobile/apps/photos/lib/services/memories_cache_service.dart
+++ b/mobile/apps/photos/lib/services/memories_cache_service.dart
@@ -886,6 +886,7 @@ class MemoriesCacheService {
final notifications = NotificationService.instance;
if (!await notifications.hasGrantedPermissions()) return;
final strings = await LanguageService.locals;
+ if (!showAnyMemories) return;
if (control?.stopRequested ?? false) return;
if (AppLifecycleService.instance.isForeground) {
await localSettings.markInitialMemoriesNotificationScheduled();