no auto send
This commit is contained in:
parent
a188639ff0
commit
c577880aac
1 changed files with 4 additions and 0 deletions
|
|
@ -407,6 +407,10 @@ const sendHandshakeRequest = async (recipientPublicKey, gun, user, SEA) => {
|
||||||
throw new TypeError('recipientPublicKey is an string of length 0')
|
throw new TypeError('recipientPublicKey is an string of length 0')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (recipientPublicKey === user.is.pub) {
|
||||||
|
throw new Error('Do not send a request to yourself')
|
||||||
|
}
|
||||||
|
|
||||||
console.log('sendHR() -> before recipientEpub')
|
console.log('sendHR() -> before recipientEpub')
|
||||||
|
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue