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

fix(mobile): remain on albums after album deletion
This commit is contained in:
Yaros 2025-03-07 20:25:07 +01:00 committed by GitHub
parent 19c40e3be9
commit c12986d38c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(