nwc: attach lud16 to profile when attaching wallet

This commit is contained in:
William Casarin
2023-05-10 11:41:38 -07:00
parent a5726d4650
commit 5cce18c8b6
3 changed files with 21 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ class WalletModel: ObservableObject {
func connect(_ nwc: WalletConnectURL) {
self.settings?.nostr_wallet_connect = nwc.to_url().absoluteString
notify(.attached_wallet, nwc)
self.connect_state = .existing(nwc)
self.previous_state = .existing(nwc)
}