From 92514ad08f3624a769ed46a21c15e469fb5495ee Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 9 Jun 2014 20:26:34 -0400 Subject: [PATCH] Fix missing baseKey --- js/crypto.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/crypto.js b/js/crypto.js index 740b0287..4c6d541a 100644 --- a/js/crypto.js +++ b/js/crypto.js @@ -353,7 +353,7 @@ window.textsecure.crypto = function() { return HKDF(sharedSecret.buffer, '', "WhisperText").then(function(masterKey) { var session = {currentRatchet: { rootKey: masterKey[0], lastRemoteEphemeralKey: theirEphemeralPubKey }, - indexInfo: { remoteIdentityKey: theirIdentityPubKey, closed: -1 }, + indexInfo: { remoteIdentityKey: theirIdentityPubKey, closed: -1, baseKey: theirEphemeralPubKey }, oldRatchetList: [] }; @@ -457,7 +457,6 @@ window.textsecure.crypto = function() { .then(function(new_session) { // Note that the session is not actually saved until the very end of decryptWhisperMessage // ... to ensure that the sender actually holds the private keys for all reported pubkeys - new_session.indexInfo.baseKey = message.baseKey; return [new_session, open_session]; });; }