You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-09-01 21:21:58 +03:00
Add _queues to MatrixScheduler.
This commit is contained in:
@@ -45,10 +45,8 @@ module.exports.request = function(r) {
|
||||
* @param {string} opts.baseUrl The base URL to the client-server HTTP API.
|
||||
* @param {string} opts.accessToken Optional. The access_token for this user.
|
||||
* @param {string} opts.userId Optional. The user ID for this user.
|
||||
* @param {Object} opts.store Optional. The data store to use. Defaults to
|
||||
* {@link module:store/memory.MatrixInMemoryStore}.
|
||||
* @param {Object} opts.scheduler Optional. The scheduler to use. Defaults to
|
||||
* {@link module:scheduler~MatrixScheduler}.
|
||||
* @param {Object} opts.store Set to {@link module:store/memory.MatrixInMemoryStore}.
|
||||
* @param {Object} opts.scheduler Set to {@link module:scheduler~MatrixScheduler}.
|
||||
* @return {MatrixClient} A new matrix client.
|
||||
*/
|
||||
module.exports.createClient = function(opts) {
|
||||
@@ -59,6 +57,7 @@ module.exports.createClient = function(opts) {
|
||||
}
|
||||
opts.request = request;
|
||||
opts.store = new module.exports.MatrixInMemoryStore();
|
||||
opts.scheduler = new module.exports.MatrixScheduler();
|
||||
return new module.exports.MatrixClient(opts);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user