From 7d3ec8af37a57e12defa1eecf6afd641f1069daa Mon Sep 17 00:00:00 2001 From: martyfuhry Date: Mon, 24 Jul 2023 12:39:10 -0400 Subject: [PATCH] fix(mobile): Memory lane now updates to the correct day if the app is resumed the next day (#3414) * Adds todayProvider to memory lane * Revert "Adds todayProvider to memory lane" This reverts commit 67ae58b513b310147dbeefd201d8f1be53624d65. * Invalidate memory provider on app resume --- mobile/lib/main.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mobile/lib/main.dart b/mobile/lib/main.dart index 672198e5bf..5c9a60393d 100644 --- a/mobile/lib/main.dart +++ b/mobile/lib/main.dart @@ -14,6 +14,7 @@ import 'package:immich_mobile/modules/backup/models/duplicated_asset.model.dart' import 'package:immich_mobile/modules/backup/providers/backup.provider.dart'; import 'package:immich_mobile/modules/backup/providers/ios_background_settings.provider.dart'; import 'package:immich_mobile/modules/login/providers/authentication.provider.dart'; +import 'package:immich_mobile/modules/memories/providers/memory.provider.dart'; import 'package:immich_mobile/modules/onboarding/providers/gallery_permission.provider.dart'; import 'package:immich_mobile/modules/settings/providers/notification_permission.provider.dart'; import 'package:immich_mobile/routing/router.dart'; @@ -156,6 +157,8 @@ class ImmichAppState extends ConsumerState ref.read(iOSBackgroundSettingsProvider.notifier).refresh(); + ref.invalidate(memoryFutureProvider); + break; case AppLifecycleState.inactive: