mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-12 22:09:31 +02:00
Doesn't show people lists that have 0 people in it.
This commit is contained in:
parent
a32f907d6c
commit
aa4a3fe9af
@ -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 {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user