This repository was archived by the owner on Aug 5, 2021. It is now read-only.
Commit b6c3093
committed
SessionCipher: allow caller to provide fillMessageKeys limit
If options.messageKeysLimit is provided by falsey, then we don't apply
any limit at all. This can be used to set no limit for communications
from your own devices.
Why would you want that? People leave their laptops closed for weeks at
a time and get this error, since their other devices are sending
messages to it constantly:
"Too many message keys for chain"
And it seems to be really hard to fix once you're in this state. Sync
messages no longer show up from the device that got into this state.
FREEBIE1 parent f308236 commit b6c3093
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36032 | 36032 | | |
36033 | 36033 | | |
36034 | 36034 | | |
36035 | | - | |
| 36035 | + | |
| 36036 | + | |
| 36037 | + | |
| 36038 | + | |
| 36039 | + | |
| 36040 | + | |
| 36041 | + | |
| 36042 | + | |
36036 | 36043 | | |
36037 | 36044 | | |
36038 | 36045 | | |
| |||
36305 | 36312 | | |
36306 | 36313 | | |
36307 | 36314 | | |
36308 | | - | |
| 36315 | + | |
36309 | 36316 | | |
36310 | 36317 | | |
36311 | 36318 | | |
| |||
36428 | 36435 | | |
36429 | 36436 | | |
36430 | 36437 | | |
36431 | | - | |
36432 | | - | |
| 36438 | + | |
| 36439 | + | |
36433 | 36440 | | |
36434 | 36441 | | |
36435 | 36442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
| |||
271 | 278 | | |
272 | 279 | | |
273 | 280 | | |
274 | | - | |
| 281 | + | |
275 | 282 | | |
276 | 283 | | |
277 | 284 | | |
| |||
394 | 401 | | |
395 | 402 | | |
396 | 403 | | |
397 | | - | |
398 | | - | |
| 404 | + | |
| 405 | + | |
399 | 406 | | |
400 | 407 | | |
401 | 408 | | |
| |||
0 commit comments