Fix missing baseKey
This commit is contained in:
parent
ceca03c5d0
commit
92514ad08f
1 changed files with 1 additions and 2 deletions
|
@ -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];
|
||||
});;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue