fix(mobile): video icon not showing on memories (#27311)
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue