Skip to content

Commit

Permalink
Doesn't show people lists that have 0 people in it.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jul 17, 2024
1 parent a32f907 commit aa4a3fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ class FollowListViewModel(
if (
event != null &&
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)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ abstract class GeneralListEvent(

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

Expand Down

0 comments on commit aa4a3fe

Please sign in to comment.