From 55477429bebee16a23185041d0e65b3247d7db09 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 10 Mar 2026 09:13:05 -0400 Subject: [PATCH] removes old null mute lists from top nav bar --- .../amethyst/model/nip51Lists/peopleList/PeopleListsState.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/peopleList/PeopleListsState.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/peopleList/PeopleListsState.kt index dc178a8e5..3787caac9 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/peopleList/PeopleListsState.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/nip51Lists/peopleList/PeopleListsState.kt @@ -68,7 +68,10 @@ class PeopleListsState( ) { val user = cache.getOrCreateUser(signer.pubKey) - fun existingPeopleListNotes() = cache.addressables.filter(PeopleListEvent.KIND, user.pubkeyHex) + fun existingPeopleListNotes() = + cache.addressables + .filter(PeopleListEvent.KIND, user.pubkeyHex) + .filter { it.dTag() != PeopleListEvent.BLOCK_LIST_D_TAG || it.event != null } val peopleListVersions = MutableStateFlow(0)