Update welshman

This commit is contained in:
Jon Staab
2024-10-29 13:20:59 -07:00
parent 8e97dd0c69
commit 3f143b7aa2
8 changed files with 96 additions and 33 deletions
+3 -2
View File
@@ -63,10 +63,11 @@
relays: rootHandle.nip46 || rootHandle.relays || nip46 || relays,
}
const broker = Nip46Broker.get(pubkey, secret, handler)
// Gotta use user pubkey as the handler pubkey for historical reasons
const broker = Nip46Broker.get({secret, handler: {...handler, pubkey}})
if (await broker.connect("", nip46Perms)) {
await onSuccess({method: "nip46", pubkey, secret, handler}, relays)
await onSuccess({method: "nip46", pubkey, secret, handler: {...handler, pubkey}}, relays)
} else {
pushToast({
theme: "error",