Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit bea0c3b

Browse files
committed
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.
1 parent a42fa1e commit bea0c3b

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

dist/libsignal-protocol.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35705,9 +35705,6 @@ Internal.SessionRecord = function() {
3570535705
};
3570635706
}
3570735707
}
35708-
// Delete current root key and our ephemeral key pair to disallow ratchet stepping
35709-
delete session.currentRatchet.rootKey;
35710-
delete session.currentRatchet.ephemeralKeyPair;
3571135708
session.indexInfo.closed = Date.now();
3571235709
this.removeOldChains(session);
3571335710
},

src/SessionRecord.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ Internal.SessionRecord = function() {
210210
};
211211
}
212212
}
213-
// Delete current root key and our ephemeral key pair to disallow ratchet stepping
214-
delete session.currentRatchet.rootKey;
215-
delete session.currentRatchet.ephemeralKeyPair;
216213
session.indexInfo.closed = Date.now();
217214
this.removeOldChains(session);
218215
},

0 commit comments

Comments
 (0)