You've already forked matrix-js-sdk
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user