bug: Pass pubkey to initiateRelay on reconnect

Pass the pubkey if we already know it.
This commit is contained in:
Dagur Valberg Johannsson 2026-03-22 23:09:21 +01:00
parent 8467856975
commit cb4f1ee598
No known key found for this signature in database
GPG key ID: FD701804AEE88107

View file

@ -178,7 +178,7 @@ export function initiateDappRelay(
const cleanup = initiateRelay( const cleanup = initiateRelay(
wrappedCallback, wrappedCallback,
dappPrivateKey, dappPrivateKey,
new Uint8Array(33), walletPublicKeyNostr ?? new Uint8Array(33),
{ {
explicitRelayUrls: relayUrls, explicitRelayUrls: relayUrls,
reconnectInterval: options.reconnectInterval, reconnectInterval: options.reconnectInterval,