fix: add assets to album (#20626)

* fix: add assets to album

* always navigate back to the albums view from album page
This commit is contained in:
Alex 2025-08-04 12:25:11 -05:00 committed by GitHub
parent c8f9a72d3e
commit be85832b20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,3 @@
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/domain/models/asset/base_asset.model.dart';
@ -26,7 +25,7 @@ class _SelectionSliverAppBarState extends ConsumerState<SelectionSliverAppBar> {
onDone(Set<BaseAsset> selected) {
ref.read(multiSelectProvider.notifier).reset();
context.maybePop<Set<BaseAsset>>(selected);
context.pop<Set<BaseAsset>>(selected);
}
return SliverAppBar(