chore: address review

This commit is contained in:
Vasco Santos
2020-07-15 11:40:57 +02:00
committed by Jacob Heun
parent 4ab125e017
commit 89658dd655
11 changed files with 75 additions and 61 deletions

View File

@ -43,7 +43,7 @@ async function encrypt (localId, conn, remoteId) {
throw new InvalidCryptoExchangeError('Remote did not provide its public key')
}
if (remoteId && !peerId.isEqual(remoteId)) {
if (remoteId && !peerId.equals(remoteId)) {
throw new UnexpectedPeerError()
}