From 15af686a58721d8e3a7e93610de7a1fcc189fcd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Wed, 19 Feb 2025 15:21:35 -0800 Subject: [PATCH] Fix issue where a NWC connection would not work unless restarting the app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- damus/ContentView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/damus/ContentView.swift b/damus/ContentView.swift index 0e835392..7a09796e 100644 --- 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,