damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 98f83769bd4b3b192bf1b492b84304e65693576d
parent b2ee44c0ab992c12456eec53224b7a7d6db29fc7
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Wed, 19 Feb 2025 15:21:35 -0800

Fix issue where a NWC connection would not work unless restarting the app

Changelog-Fixed: Fixed issue where app would need a restart for new NWC wallets to work
Closes: https://github.com/damus-io/damus/issues/2859
Closes: https://github.com/damus-io/damus/issues/1135
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>

Diffstat:
Mdamus/ContentView.swift | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -370,6 +370,8 @@ struct ContentView: View { self.confirm_mute = true } .onReceive(handle_notify(.attached_wallet)) { nwc in + try? damus_state.pool.add_relay(.nwc(url: nwc.relay)) + // update the lightning address on our profile when we attach a // wallet with an associated guard let ds = self.damus_state,