fix(mobile): don't pop when opening albums

The asset viewer closes when opening an album from the asset details.
This doesn't seem desirable, and it likely a side-effect from the
previous pop behaviour which would close just the bottom sheet, and not
the asset viewer.
This commit is contained in:
Thomas Way
2026-02-20 21:21:03 +00:00
parent 82c6302549
commit b68c442356

View File

@@ -60,8 +60,7 @@ class AppearsInDetails extends ConsumerWidget {
album: album, album: album,
isOwner: isOwner, isOwner: isOwner,
onAlbumSelected: (album) async { onAlbumSelected: (album) async {
ref.invalidate(assetViewerProvider); unawaited(context.router.push(RemoteAlbumRoute(album: album)));
unawaited(context.router.popAndPush(RemoteAlbumRoute(album: album)));
}, },
); );
}).toList(), }).toList(),