mirror of https://codeberg.org/pzp/zooboard.git
Improve claiming of promise.follow
This commit is contained in:
parent
af088ba143
commit
9da1176e5f
2
main.js
2
main.js
|
@ -253,9 +253,9 @@ async function handlePPPPPUri(ev, uri) {
|
|||
// eslint-disable-next-line no-loop-func
|
||||
peer.addListener('rpc:connect', function onConnect(rpc) {
|
||||
if (rpc.shse.pubkey === issuerPubkey) {
|
||||
peer.removeListener('rpc:connect', onConnect)
|
||||
rpc.promise.follow(command.token, globalAccountID, (err) => {
|
||||
if (err) return console.error('Failed to use follow promise', err)
|
||||
peer.removeListener('rpc:connect', onConnect)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue