kopia lustrzana https://github.com/vitorpamplona/amethyst
Fixes markers for DMs
rodzic
6e1418cd54
commit
d079d511e8
|
@ -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()))
|
||||
|
|
|
@ -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()))
|
||||
|
|
Ładowanie…
Reference in New Issue