From b0e7082ec6bb5f9ca81c002b3067e3c0a5ba75ab Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 24 Oct 2025 19:07:31 -0400 Subject: [PATCH] Solves crash when the same user is in the private and public part of the list --- .../ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt index 87eda557f..e7b2161a2 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/followsets/FollowSetScreen.kt @@ -288,7 +288,7 @@ private fun FollowSetListView( } HorizontalDivider(thickness = DividerThickness) } - itemsIndexed(publicMemberList, key = { _, item -> item.pubkeyHex }) { _, item -> + itemsIndexed(publicMemberList, key = { _, item -> "u" + item.pubkeyHex }) { _, item -> FollowSetListItem( modifier = Modifier.animateItem(), user = item, @@ -310,7 +310,7 @@ private fun FollowSetListView( ) HorizontalDivider(thickness = DividerThickness) } - itemsIndexed(privateMemberList, key = { _, item -> item.pubkeyHex }) { _, item -> + itemsIndexed(privateMemberList, key = { _, item -> "i" + item.pubkeyHex }) { _, item -> FollowSetListItem( modifier = Modifier.animateItem(), user = item,