fix(mobile): video icon not showing on memories (#27311)

This commit is contained in:
Yaros
2026-03-27 15:11:02 +01:00
committed by GitHub
parent 8724848fce
commit c13fd9e4b5
@@ -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;