1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

Start first incremental sync request early (#629)

* Start first incremental sync request early

So it can run while we process our sync data.
This commit is contained in:
David Baker
2018-03-16 15:22:06 +00:00
committed by Luke Barnard
parent 349297e495
commit 16c062c069
9 changed files with 177 additions and 89 deletions

View File

@@ -137,6 +137,7 @@ describe("MatrixClient", function() {
"getSyncAccumulator", "startup", "deleteAllData",
].reduce((r, k) => { r[k] = expect.createSpy(); return r; }, {});
store.getSavedSync = expect.createSpy().andReturn(Promise.resolve(null));
store.getSavedSyncToken = expect.createSpy().andReturn(Promise.resolve(null));
store.setSyncData = expect.createSpy().andReturn(Promise.resolve(null));
client = new MatrixClient({
baseUrl: "https://my.home.server",