Doesn't show people lists that have 0 people in it.

This commit is contained in:
Vitor Pamplona
2024-07-17 19:33:47 -04:00
parent a32f907d6c
commit aa4a3fe9af
2 changed files with 2 additions and 2 deletions

View File

@@ -718,7 +718,7 @@ class FollowListViewModel(
if ( if (
event != null && event != null &&
event.pubKey == account.userProfile().pubkeyHex && event.pubKey == account.userProfile().pubkeyHex &&
(event.tags.size > 1 || event.content.length > 50) (event.hasAnyTaggedUser() || event.publicAndPrivateUserCache?.isNotEmpty() == true)
) { ) {
CodeName(event.address().toTag(), PeopleListName(addressableNote), CodeNameType.PEOPLE_LIST) CodeName(event.address().toTag(), PeopleListName(addressableNote), CodeNameType.PEOPLE_LIST)
} else { } else {

View File

@@ -54,7 +54,7 @@ abstract class GeneralListEvent(
fun title() = tags.firstOrNull { it.size > 1 && it[0] == "title" }?.get(1) fun title() = tags.firstOrNull { it.size > 1 && it[0] == "title" }?.get(1)
fun nameOrTitle() = name() ?: title() fun nameOrTitle() = name()?.ifBlank { null } ?: title()?.ifBlank { null }
fun cachedPrivateTags(): Array<Array<String>>? = privateTagsCache fun cachedPrivateTags(): Array<Array<String>>? = privateTagsCache