Increase maximum message counter from 2000 to 5000
This commit is contained in:
parent
0c09f9620f
commit
2481784ab2
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue