matrix-js-sdk
4f173528 - Don't do /keys/changes on incremental sync

Comment changes are shownComment changes are hidden
Commit
7 years ago
Don't do /keys/changes on incremental sync Remove the call to /keys/changes when we do an incremental syn where the old sync token doesn't match the one in the device list store. To allow us to do this, always save the device list store before saving the sync data, so we can safely assume the device list store is at least as fresh as the sync token in the sync store. Thread save functions through to allow this, add a delay parameter so the sync can save the device list immediately and skip the wait, and add a wantsSave() method so the sync can skip saving the device list if the sync store isn't going to save anyway. Fixes https://github.com/vector-im/riot-web/issues/6068
Author
Parents
  • src
    • crypto
      • File
        DeviceList.js
      • File
        index.js
    • store
      • File
        indexeddb.js
      • File
        memory.js
      • File
        stub.js
    • File
      sync.js
Loading