diff --git a/js/libtextsecure.js b/js/libtextsecure.js index d28cfced517d..2c9fa0aeb2ce 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 6feaff42cb5e..ce0887562337 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');