From c13fd9e4b54f50c91f84349aa7a4333998cba581 Mon Sep 17 00:00:00 2001 From: Yaros Date: Fri, 27 Mar 2026 15:11:02 +0100 Subject: [PATCH] fix(mobile): video icon not showing on memories (#27311) --- mobile/lib/presentation/pages/drift_memory.page.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/lib/presentation/pages/drift_memory.page.dart b/mobile/lib/presentation/pages/drift_memory.page.dart index 3f8879c91d..846f062501 100644 --- a/mobile/lib/presentation/pages/drift_memory.page.dart +++ b/mobile/lib/presentation/pages/drift_memory.page.dart @@ -207,6 +207,11 @@ class DriftMemoryPage extends HookConsumerWidget { WidgetsBinding.instance.addPostFrameCallback((_) { DriftMemoryPage.setMemory(ref, memories[pageNumber]); }); + + // Update currentAsset to the first asset of the new memory + if (memories[pageNumber].assets.isNotEmpty) { + currentAsset.value = memories[pageNumber].assets.first; + } } currentAssetPage.value = 0;