fix crash when quickly unfollowing hashtags

This commit is contained in:
Conny Duck 2024-05-01 14:45:42 +02:00
parent b2547c5eef
commit 43752dcd8f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class FollowedTagsActivity :
lifecycleScope.launch {
api.unfollowTag(tagName).fold(
{
viewModel.tags.removeAt(position)
viewModel.tags.removeIf { tag -> tag.name == tagName }
Snackbar.make(
this@FollowedTagsActivity,
binding.followedTagsView,