Fixes missing method on build

This commit is contained in:
Vitor Pamplona
2025-08-07 10:09:43 -04:00
parent 10832e10c8
commit 51d7fa3aac

View File

@@ -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"