matrix-js-sdk
98d606fc - Upload one-time keys on /sync rather than a timer

Commit
8 years ago
Upload one-time keys on /sync rather than a timer Delay the upload of one-time keys until we have received a sync *without any to-device messages*. Doing so means that we can try to avoid throwing away our private keys just before we receive the to-device messages which use them. Once we've decided to go ahead and upload them, we keep uploading them in batches of 5 until we get to the desired 50 keys on the server. We then periodically check that there are still enough on the server.
Author
Parents
Loading