From ff0a4eb88fe815d2a810b84c91df68f3b9b30f15 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 26 Sep 2025 16:09:07 -0400 Subject: [PATCH] Fixes userList of the FollowList state --- .../amethyst/model/nip02FollowLists/FollowListState.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip02FollowLists/FollowListState.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip02FollowLists/FollowListState.kt index a36abd280..a5429d656 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip02FollowLists/FollowListState.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip02FollowLists/FollowListState.kt @@ -79,7 +79,7 @@ class FollowListState( val userList = flow .map { - it.authors.map { + it.authors.mapNotNull { cache.checkGetOrCreateUser(it) } }.flowOn(Dispatchers.Default) @@ -87,7 +87,7 @@ class FollowListState( scope, SharingStarted.Eagerly, // this has priority. - flow.value.authors.map { + flow.value.authors.mapNotNull { cache.checkGetOrCreateUser(it) }, )