Keeps track of a message's GiftWrap host in order to broadcast later.

This commit is contained in:
Vitor Pamplona
2023-08-20 10:24:11 -04:00
parent 784f867a8e
commit eb59a9d505
5 changed files with 33 additions and 3 deletions
@@ -452,7 +452,13 @@ class Account(
fun broadcast(note: Note) {
note.event?.let {
Client.send(it)
if (it is WrappedEvent && it.host != null) {
it.host?.let { hostEvent ->
Client.send(hostEvent)
}
} else {
Client.send(it)
}
}
}