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:
parent
a42fa1e6e1
commit
bea0c3b792
3
dist/libsignal-protocol.js
vendored
3
dist/libsignal-protocol.js
vendored
@ -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);
|
||||
},
|
||||
|
||||
@ -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);
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user