fix crash when quickly unfollowing hashtags
This commit is contained in:
parent
b2547c5eef
commit
43752dcd8f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue