Fix libsignal-protocol using wrong direction flag

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent 6fdd0f1625
commit 53e7e1be3a

@ -36330,7 +36330,7 @@ SessionCipher.prototype = {
}
return this.storage.isTrustedIdentity(
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.SENDING
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.RECEIVING
).then(function(trusted) {
if (!trusted) {
throw new Error('Identity key changed');

@ -36193,7 +36193,7 @@ SessionCipher.prototype = {
}
return this.storage.isTrustedIdentity(
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.SENDING
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.RECEIVING
).then(function(trusted) {
if (!trusted) {
throw new Error('Identity key changed');

Loading…
Cancel
Save