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 },
|
{ it.pubkeyHex },
|
||||||
)
|
)
|
||||||
|
|
||||||
fun List<Event>.toNonHiddenOwners(): List<User> =
|
fun List<Event>.toNonHiddenOwners(): Set<User> =
|
||||||
mapNotNull { event ->
|
mapNotNullTo(mutableSetOf()) { event ->
|
||||||
if (!account.isHidden(event.pubKey)) {
|
if (!account.isHidden(event.pubKey)) {
|
||||||
account.cache.getOrCreateUser(event.pubKey)
|
account.cache.getOrCreateUser(event.pubKey)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user