Fix missing baseKey

This commit is contained in:
Matt Corallo 2014-06-09 20:26:34 -04:00
parent ceca03c5d0
commit 92514ad08f

View file

@ -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];
});;
}