From c12986d38c708231243f821f0eb66d10db2209cc Mon Sep 17 00:00:00 2001 From: Yaros Date: Fri, 7 Mar 2025 20:25:07 +0100 Subject: [PATCH] fix(mobile): remain on albums tab after album deletion (#16698) fix(mobile): remain on albums after album deletion --- mobile/lib/widgets/album/album_viewer_appbar.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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(