handle incoming URIs only after account is loaded

This commit is contained in:
Andre Staltz 2024-01-19 15:41:24 +02:00
parent 7a98e3cbcc
commit 0a70f2e31c
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,10 @@ async function scheduleWithHub(multiaddr) {
} }
async function handlePPPPPUri(uri) { async function handlePPPPPUri(uri) {
if (!globalAccountID) {
setTimeout(handlePPPPPUri, 100, uri)
return
}
if (!uri.startsWith('ppppp://')) return if (!uri.startsWith('ppppp://')) return
console.log('handlePPPPPUri', uri) console.log('handlePPPPPUri', uri)
const commands = peer.invite.parse(uri) const commands = peer.invite.parse(uri)