mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 22:53:11 +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 groupKeySetWithoutOwner() = tags.mapNotNullTo(mutableSetOf(), ReceiverTag::parseKey) - this.pubKey
|
||||||
|
|
||||||
fun groupAsNProfileList(toRemove: Set<HexKey>) =
|
fun groupAsNProfileList() =
|
||||||
group().joinToString {
|
tags
|
||||||
NProfile.create(it.pubKey, it.relayHint)
|
.mapNotNull(ReceiverTag::parse)
|
||||||
}
|
.joinToString {
|
||||||
|
"nostr:" + NProfile.create(it.pubKey, it.relayHint)
|
||||||
|
}
|
||||||
|
|
||||||
fun chatroomKey(user: HexKey) = groupKeySet() - user
|
fun chatroomKey(user: HexKey) = groupKeySet() - user
|
||||||
|
|
||||||
|
fun peopleAndContent() = groupAsNProfileList() + " " + content
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val KIND = 24
|
const val KIND = 24
|
||||||
const val ALT_DESCRIPTION = "Public Message"
|
const val ALT_DESCRIPTION = "Public Message"
|
||||||
|
Reference in New Issue
Block a user