1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Add ability to set a filter prior to initial sync.

Useful for only syncing with a subset of joined rooms or only retrieving certain relevant types of events.
This commit is contained in:
lukebarnard
2016-10-25 20:05:25 +01:00
parent d105854619
commit 5900542cfb
2 changed files with 10 additions and 2 deletions

View File

@@ -2511,6 +2511,9 @@ MatrixClient.prototype.getTurnServers = function() {
*
* @param {Number=} opts.pollTimeout The number of milliseconds to wait on /events.
* Default: 30000 (30 seconds).
*
* @param {Filter=} opts.filter The filter to apply to /sync calls. This will override
* the opts.initialSyncLimit, which would normally result in a timeline limit filter.
*/
MatrixClient.prototype.startClient = function(opts) {
if (this.clientRunning) {