1
0
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:
Alexander
2016-11-16 09:26:16 -05:00
parent 8143abc9e7
commit a0fd87c032

View File

@@ -60,7 +60,7 @@ function debuglog() {
function SyncApi(client, opts) {
this.client = client;
opts = opts || {};
opts.initialSyncLimit = opts.initialSyncLimit || 8;
opts.initialSyncLimit = (opts.initialSyncLimit === undefined ? 8 : opts.initialSyncLimit);
opts.resolveInvitesToProfiles = opts.resolveInvitesToProfiles || false;
opts.pollTimeout = opts.pollTimeout || (30 * 1000);
opts.pendingEventOrdering = opts.pendingEventOrdering || "chronological";