diff --git a/mobile/lib/modules/home/views/home_page.dart b/mobile/lib/modules/home/views/home_page.dart index f6eb523e38..f0cb411aa2 100644 --- a/mobile/lib/modules/home/views/home_page.dart +++ b/mobile/lib/modules/home/views/home_page.dart @@ -101,10 +101,20 @@ class HomePage extends HookConsumerWidget { } void onFavoriteAssets() { - final remoteAssests = remoteOnlySelection( + final remoteAssets = remoteOnlySelection( localErrorMessage: 'Can not favorite local assets yet, skipping', ); - ref.watch(favoriteProvider.notifier).addToFavorites(remoteAssests); + if (remoteAssets.isNotEmpty) { + ref.watch(favoriteProvider.notifier).addToFavorites(remoteAssets); + + final assetOrAssets = remoteAssets.length > 1 ? 'assets' : 'asset'; + ImmichToast.show( + context: context, + msg: 'Added ${remoteAssets.length} $assetOrAssets to favorites', + gravity: ToastGravity.BOTTOM, + ); + } + selectionEnabledHook.value = false; }