1
0
mirror of git://jb55.com/damus synced 2024-09-19 19:46:51 +00:00

nwc: make sure to support nostr+walletconnect scheme

not sure why we have 2 schemes
This commit is contained in:
William Casarin 2023-05-15 12:54:42 -07:00
parent 0b9a274e67
commit 1b161fefd0

View File

@ -36,7 +36,8 @@ struct WalletConnectURL: Equatable {
}
init?(str: String) {
guard let url = URL(string: str), url.scheme == "nostrwalletconnect",
guard let url = URL(string: str),
url.scheme == "nostrwalletconnect" || url.scheme == "nostr+walletconnect",
let pk = url.host, pk.utf8.count == 64,
let components = URLComponents(url: url, resolvingAgainstBaseURL: true),
let items = components.queryItems,