fix: refresh appear in list after asset is added to a current or new album (#24523)

This commit is contained in:
Alex
2025-12-11 11:06:53 -06:00
committed by GitHub
parent 8cf900bafa
commit 4b345e02ff
2 changed files with 11 additions and 1 deletions

View File

@@ -156,6 +156,9 @@ class _AddActionButtonState extends ConsumerState<AddActionButton> {
context: context,
msg: 'add_to_album_bottom_sheet_added'.tr(namedArgs: {'album': album.name}),
);
// Invalidate using the asset's remote ID to refresh the "Appears in" list
ref.invalidate(albumsContainingAssetProvider(latest.remoteId!));
}
if (!context.mounted) {