From 0a70f2e31c365a4eadf4d3b5700596753ae39857 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Fri, 19 Jan 2024 15:41:24 +0200 Subject: [PATCH] handle incoming URIs only after account is loaded --- main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.js b/main.js index 96cbefd..9a16dd5 100644 --- a/main.js +++ b/main.js @@ -219,6 +219,10 @@ async function scheduleWithHub(multiaddr) { } async function handlePPPPPUri(uri) { + if (!globalAccountID) { + setTimeout(handlePPPPPUri, 100, uri) + return + } if (!uri.startsWith('ppppp://')) return console.log('handlePPPPPUri', uri) const commands = peer.invite.parse(uri)