Fixes markers for DMs
This commit is contained in:
@@ -87,7 +87,7 @@ class ChatMessageEvent(
|
|||||||
) {
|
) {
|
||||||
val tags = mutableListOf<Array<String>>()
|
val tags = mutableListOf<Array<String>>()
|
||||||
to?.forEach { tags.add(arrayOf("p", it)) }
|
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")) }
|
mentions?.forEach { tags.add(arrayOf("p", it, "", "mention")) }
|
||||||
zapReceiver?.forEach {
|
zapReceiver?.forEach {
|
||||||
tags.add(arrayOf("zap", it.lnAddressOrPubKeyHex, it.relay ?: "", it.weight.toString()))
|
tags.add(arrayOf("zap", it.lnAddressOrPubKeyHex, it.relay ?: "", it.weight.toString()))
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ class PrivateDmEvent(
|
|||||||
|
|
||||||
val tags = mutableListOf<Array<String>>()
|
val tags = mutableListOf<Array<String>>()
|
||||||
publishedRecipientPubKey?.let { tags.add(arrayOf("p", publishedRecipientPubKey)) }
|
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)) }
|
mentions?.forEach { tags.add(arrayOf("p", it)) }
|
||||||
zapReceiver?.forEach {
|
zapReceiver?.forEach {
|
||||||
tags.add(arrayOf("zap", it.lnAddressOrPubKeyHex, it.relay ?: "", it.weight.toString()))
|
tags.add(arrayOf("zap", it.lnAddressOrPubKeyHex, it.relay ?: "", it.weight.toString()))
|
||||||
|
|||||||
Reference in New Issue
Block a user