Increase maximum message counter from 2000 to 5000

This commit is contained in:
Scott Nonnenberg 2019-09-27 09:30:24 -07:00
parent 0c09f9620f
commit 2481784ab2

View file

@ -36312,8 +36312,8 @@ SessionCipher.prototype = {
return Promise.resolve(); // Already calculated
}
if (counter - chain.chainKey.counter > 2000) {
throw new Error('Over 2000 messages into the future!');
if (counter - chain.chainKey.counter > 5000) {
throw new Error('Over 5000 messages into the future!');
}
if (chain.chainKey.key === undefined) {