Solves crash when the same user is in the private and public part of the list

This commit is contained in:
Vitor Pamplona
2025-10-24 19:07:31 -04:00
parent 34971211f1
commit b0e7082ec6

View File

@@ -288,7 +288,7 @@ private fun FollowSetListView(
} }
HorizontalDivider(thickness = DividerThickness) HorizontalDivider(thickness = DividerThickness)
} }
itemsIndexed(publicMemberList, key = { _, item -> item.pubkeyHex }) { _, item -> itemsIndexed(publicMemberList, key = { _, item -> "u" + item.pubkeyHex }) { _, item ->
FollowSetListItem( FollowSetListItem(
modifier = Modifier.animateItem(), modifier = Modifier.animateItem(),
user = item, user = item,
@@ -310,7 +310,7 @@ private fun FollowSetListView(
) )
HorizontalDivider(thickness = DividerThickness) HorizontalDivider(thickness = DividerThickness)
} }
itemsIndexed(privateMemberList, key = { _, item -> item.pubkeyHex }) { _, item -> itemsIndexed(privateMemberList, key = { _, item -> "i" + item.pubkeyHex }) { _, item ->
FollowSetListItem( FollowSetListItem(
modifier = Modifier.animateItem(), modifier = Modifier.animateItem(),
user = item, user = item,