init noise handshake on queue DMs (#379)

* init noise handshake on queue DMs

* establish noise more aggressively
This commit is contained in:
callebtc
2025-09-06 10:58:39 +02:00
committed by GitHub
parent 9518d386d0
commit cc45f477fb
2 changed files with 4 additions and 77 deletions
@@ -67,6 +67,8 @@ class MessageRouter private constructor(
Log.d(TAG, "Queued PM for ${toPeerID.take(8)}… (no mesh, no Nostr mapping) id=${messageID.take(8)}")
val q = outbox.getOrPut(toPeerID) { mutableListOf() }
q.add(Triple(content, recipientNickname, messageID))
Log.d(TAG, "Initiating noise handshake after queueing PM for ${toPeerID.take(8)}")
mesh.initiateNoiseHandshake(toPeerID)
}
}