diff --git a/js/libtextsecure.js b/js/libtextsecure.js index d28cfced5..2c9fa0aeb 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -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'); diff --git a/libtextsecure/libsignal-protocol.js b/libtextsecure/libsignal-protocol.js index 6feaff42c..ce0887562 100644 --- a/libtextsecure/libsignal-protocol.js +++ b/libtextsecure/libsignal-protocol.js @@ -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');