hide lazy loading behind feature flag

This commit is contained in:
Bruno Windels 2018-07-16 15:07:53 +02:00
parent 866b4bb067
commit af07d73432
3 changed files with 13 additions and 2 deletions

View file

@ -107,7 +107,9 @@ class MatrixClientPeg {
// the react sdk doesn't work without this, so don't allow
opts.pendingEventOrdering = "detached";
opts.filter = await this.matrixClient.createFilter(FILTER_CONTENT);
if (SettingsStore.isFeatureEnabled('feature_lazyloading')) {
opts.filter = await this.matrixClient.createFilter(FILTER_CONTENT);
}
try {
const promise = this.matrixClient.store.startup();