mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 18:51:27 +02:00
Fixes missing method on build
This commit is contained in:
@@ -62,13 +62,17 @@ class PublicMessageEvent(
|
||||
|
||||
fun groupKeySetWithoutOwner() = tags.mapNotNullTo(mutableSetOf(), ReceiverTag::parseKey) - this.pubKey
|
||||
|
||||
fun groupAsNProfileList(toRemove: Set<HexKey>) =
|
||||
group().joinToString {
|
||||
NProfile.create(it.pubKey, it.relayHint)
|
||||
}
|
||||
fun groupAsNProfileList() =
|
||||
tags
|
||||
.mapNotNull(ReceiverTag::parse)
|
||||
.joinToString {
|
||||
"nostr:" + NProfile.create(it.pubKey, it.relayHint)
|
||||
}
|
||||
|
||||
fun chatroomKey(user: HexKey) = groupKeySet() - user
|
||||
|
||||
fun peopleAndContent() = groupAsNProfileList() + " " + content
|
||||
|
||||
companion object {
|
||||
const val KIND = 24
|
||||
const val ALT_DESCRIPTION = "Public Message"
|
||||
|
Reference in New Issue
Block a user