You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-19 10:22:30 +03:00
Allows to start client with initialSyncLimit = 0 (see http://bit.ly/2f49Kbs)
This commit is contained in:
@@ -60,7 +60,7 @@ function debuglog() {
|
|||||||
function SyncApi(client, opts) {
|
function SyncApi(client, opts) {
|
||||||
this.client = client;
|
this.client = client;
|
||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
opts.initialSyncLimit = opts.initialSyncLimit || 8;
|
opts.initialSyncLimit = (opts.initialSyncLimit === undefined ? 8 : opts.initialSyncLimit);
|
||||||
opts.resolveInvitesToProfiles = opts.resolveInvitesToProfiles || false;
|
opts.resolveInvitesToProfiles = opts.resolveInvitesToProfiles || false;
|
||||||
opts.pollTimeout = opts.pollTimeout || (30 * 1000);
|
opts.pollTimeout = opts.pollTimeout || (30 * 1000);
|
||||||
opts.pendingEventOrdering = opts.pendingEventOrdering || "chronological";
|
opts.pendingEventOrdering = opts.pendingEventOrdering || "chronological";
|
||||||
|
|||||||
Reference in New Issue
Block a user