1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Do all prep for /sync calls

This includes managing filters in localStorage. The /sync response
is not yet parsed.
This commit is contained in:
Kegan Dougal
2015-12-09 15:25:09 +00:00
parent 06f927aa22
commit b622960b32
5 changed files with 180 additions and 67 deletions

View File

@@ -81,7 +81,9 @@ module.exports.createClient = function(opts) {
};
}
opts.request = opts.request || request;
opts.store = opts.store || new module.exports.MatrixInMemoryStore();
opts.store = opts.store || new module.exports.MatrixInMemoryStore({
localStorage: global.localStorage
});
opts.scheduler = opts.scheduler || new module.exports.MatrixScheduler();
return new module.exports.MatrixClient(opts);
};