Fixes missing zaps on the first connection to a NWC wallet with a split payment.

This commit is contained in:
Vitor Pamplona
2024-09-27 15:19:48 -04:00
parent 86e5dfa799
commit a028c2c3fc
4 changed files with 8 additions and 23 deletions

View File

@@ -99,7 +99,7 @@ class Relay(
}
}
private fun sendOutbox() {
fun sendOutbox() {
synchronized(outboxCache) {
outboxCache.values.forEach {
send(it)

View File

@@ -96,9 +96,8 @@ object RelayPool : Relay.Listener {
addRelay(relay)
relay.connectAndRun {
Client.allSubscriptions().forEach {
relay.sendFilter(it.key, it.value)
}
relay.renewFilters()
relay.sendOutbox()
onConnected(relay)