Fix libsignal-protocol using wrong direction flag

// FREEBIE
This commit is contained in:
lilia 2017-06-01 15:08:57 -07:00 committed by Scott Nonnenberg
parent 6fdd0f1625
commit 53e7e1be3a
2 changed files with 2 additions and 2 deletions

View file

@ -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');

View file

@ -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');