mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 21:52:32 +02:00
Doesn't show people lists that have 0 people in it.
This commit is contained in:
@@ -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 {
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user