Don't disable ratcheting when closing a session

It is possible to receive a ratchet-step message for a closed session,
in which case we need these keys around to decrypt it.
This commit is contained in:
lilia 2016-07-28 14:05:03 -07:00
parent a42fa1e6e1
commit bea0c3b792
2 changed files with 0 additions and 6 deletions

View File

@ -35705,9 +35705,6 @@ Internal.SessionRecord = function() {
};
}
}
// Delete current root key and our ephemeral key pair to disallow ratchet stepping
delete session.currentRatchet.rootKey;
delete session.currentRatchet.ephemeralKeyPair;
session.indexInfo.closed = Date.now();
this.removeOldChains(session);
},

View File

@ -210,9 +210,6 @@ Internal.SessionRecord = function() {
};
}
}
// Delete current root key and our ephemeral key pair to disallow ratchet stepping
delete session.currentRatchet.rootKey;
delete session.currentRatchet.ephemeralKeyPair;
session.indexInfo.closed = Date.now();
this.removeOldChains(session);
},