refactor(mobile): trash provider (#16219)

* refactor(mobile): trash provider

* refactor(mobile): trash provider

* pr feedback
This commit is contained in:
Alex 2025-02-20 22:14:41 -06:00 committed by GitHub
parent 34b88bb47a
commit 17a2043e76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 115 additions and 164 deletions

View file

@ -49,7 +49,8 @@ class GalleryAppBar extends ConsumerWidget {
}
handleRestore(Asset asset) async {
final result = await ref.read(trashProvider.notifier).restoreAsset(asset);
final result =
await ref.read(trashProvider.notifier).restoreAssets([asset]);
if (result && context.mounted) {
ImmichToast.show(