From 26d97e621b60938414a9fc5e6d4f90661b3c864a Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 9 Apr 2017 19:19:11 -0700 Subject: [PATCH] Update libsignal-protocol --- js/libtextsecure.js | 2 +- libtextsecure/libsignal-protocol.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 73bb66cf70..00aa5a3dd7 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -36314,7 +36314,7 @@ SessionCipher.prototype = { var errors = []; return this.decryptWithSessionList(buffer, record.getSessions(), errors).then(function(result) { return this.getRecord(address).then(function(record) { - if (result.session !== record.getOpenSession()) { + if (result.session.indexInfo.baseKey !== record.getOpenSession().indexInfo.baseKey) { record.archiveCurrentState(); record.promoteState(result.session); } diff --git a/libtextsecure/libsignal-protocol.js b/libtextsecure/libsignal-protocol.js index 4c53122cbc..4101d73481 100644 --- a/libtextsecure/libsignal-protocol.js +++ b/libtextsecure/libsignal-protocol.js @@ -36177,7 +36177,7 @@ SessionCipher.prototype = { var errors = []; return this.decryptWithSessionList(buffer, record.getSessions(), errors).then(function(result) { return this.getRecord(address).then(function(record) { - if (result.session !== record.getOpenSession()) { + if (result.session.indexInfo.baseKey !== record.getOpenSession().indexInfo.baseKey) { record.archiveCurrentState(); record.promoteState(result.session); }