Skip to content
Snippets Groups Projects
Commit b7168f23 authored by Taras's avatar Taras
Browse files

Fix ignore update on people page

parent 9c42e277
No related branches found
No related tags found
Loading
......@@ -12,7 +12,8 @@ class PeopleAdapter(
private val onOpenRequestsClicked: () -> Unit
) : BaseRvAdapter<PeopleListItem, PeopleViewHolder>(PayloadIdEntityCallback { old, new ->
if (new is PeopleUserListItem && old is PeopleUserListItem) {
PeopleUserListItemPayload(user = new.user.takeIf { it != old.user })
if (new.isIgnored != old.isIgnored) null
else PeopleUserListItemPayload(user = new.user.takeIf { it != old.user })
} else null
}) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment