Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): remain on albums tab after album deletion (#16698)

Yarosc12986d38c70
diff --git a/mobile/lib/widgets/album/album_viewer_appbar.dart b/mobile/lib/widgets/album/album_viewer_appbar.dart
index b058f29e7d..451987316b 100644
--- a/mobile/lib/widgets/album/album_viewer_appbar.dart
+++ b/mobile/lib/widgets/album/album_viewer_appbar.dart
@@ -58,12 +58,7 @@ class AlbumViewerAppbar extends HookConsumerWidget
final bool success =
await ref.watch(albumProvider.notifier).deleteAlbum(album);
- if (album.shared) {
- context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
- } else {
- context
- .navigateTo(const TabControllerRoute(children: [LibraryRoute()]));
- }
+ context.navigateTo(const TabControllerRoute(children: [AlbumsRoute()]));
if (!success) {
ImmichToast.show(