1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Review comments

This commit is contained in:
Kegan Dougal
2017-02-16 11:28:51 +00:00
parent b02ba08abc
commit 9a9646d012
7 changed files with 45 additions and 14 deletions

View File

@@ -38,7 +38,6 @@ const Filter = require("./filter");
const SyncApi = require("./sync");
const MatrixBaseApis = require("./base-apis");
const MatrixError = httpApi.MatrixError;
const IndexedDBStore = require("./store/indexeddb").IndexedDBStore;
const SCROLLBACK_DELAY_MS = 3000;
let CRYPTO_ENABLED = false;
@@ -165,10 +164,7 @@ function MatrixClient(opts) {
this.olmVersion = Crypto.getOlmVersion();
}
// Set up a sync accumulator if we can persist room data
if (this.store instanceof IndexedDBStore) {
this._syncAccumulator = this.store.getSyncAccumulator();
}
this._syncAccumulator = this.store.getSyncAccumulator();
}
utils.inherits(MatrixClient, EventEmitter);
utils.extend(MatrixClient.prototype, MatrixBaseApis.prototype);