feat(mesh-ui): render tx/lightning relay typed messages and skip self-send

Adds renderers for tx_relay, tx_relay_response, tx_confirmation,
lightning_relay, and lightning_relay_response message types so these
appear as rich cards in the chat stream. sendArchMessage now looks up
our own onion via getTorAddress and skips federation peers that match,
preventing the duplicate "echoed back to self" message we were seeing
on single-node test federations. Empty-federation error message is
also clearer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-04-13 08:01:21 -04:00
parent 3ed9243c50
commit 36cd3f4e7d
2 changed files with 57 additions and 3 deletions

View File

@@ -42,6 +42,11 @@ export type MeshMessageTypeLabel =
| 'psbt_hash'
| 'coordinate'
| 'block_header'
| 'tx_relay'
| 'tx_relay_response'
| 'tx_confirmation'
| 'lightning_relay'
| 'lightning_relay_response'
export interface MeshMessage {
id: number