Sorts followers into a set to avoid LazyColumn key conflicts.
This commit is contained in:
+2
-2
@@ -54,8 +54,8 @@ class UserProfileFollowersUserFeedViewModel(
|
||||
{ it.pubkeyHex },
|
||||
)
|
||||
|
||||
fun List<Event>.toNonHiddenOwners(): List<User> =
|
||||
mapNotNull { event ->
|
||||
fun List<Event>.toNonHiddenOwners(): Set<User> =
|
||||
mapNotNullTo(mutableSetOf()) { event ->
|
||||
if (!account.isHidden(event.pubKey)) {
|
||||
account.cache.getOrCreateUser(event.pubKey)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user