Fixes markers for DMs

pull/820/head
Vitor Pamplona 2024-03-29 17:40:51 -04:00
rodzic 6e1418cd54
commit d079d511e8
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -87,7 +87,7 @@ class ChatMessageEvent(
) {
val tags = mutableListOf<Array<String>>()
to?.forEach { tags.add(arrayOf("p", it)) }
replyTos?.forEach { tags.add(arrayOf("e", it)) }
replyTos?.forEach { tags.add(arrayOf("e", it, "", "reply")) }
mentions?.forEach { tags.add(arrayOf("p", it, "", "mention")) }
zapReceiver?.forEach {
tags.add(arrayOf("zap", it.lnAddressOrPubKeyHex, it.relay ?: "", it.weight.toString()))

Wyświetl plik

@ -146,7 +146,7 @@ class PrivateDmEvent(
val tags = mutableListOf<Array<String>>()
publishedRecipientPubKey?.let { tags.add(arrayOf("p", publishedRecipientPubKey)) }
replyTos?.forEach { tags.add(arrayOf("e", it)) }
replyTos?.forEach { tags.add(arrayOf("e", it, "", "reply")) }
mentions?.forEach { tags.add(arrayOf("p", it)) }
zapReceiver?.forEach {
tags.add(arrayOf("zap", it.lnAddressOrPubKeyHex, it.relay ?: "", it.weight.toString()))