From bccb7750045a8adc61231aa9263041110d47fe3e Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 26 Nov 2021 22:39:03 +0000 Subject: [PATCH] Disable filters --- src/matrix/Sync.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index ed9889b1..1ba4f90c 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -181,10 +181,10 @@ export class Sync { async _syncRequest(syncToken, timeout, log) { let {syncFilterId} = this._session; - if (typeof syncFilterId !== "string") { - this._currentRequest = this._hsApi.createFilter(this._session.user.id, {room: {state: {lazy_load_members: true}}}, {log}); - syncFilterId = (await this._currentRequest.response()).filter_id; - } + // if (typeof syncFilterId !== "string") { + // this._currentRequest = this._hsApi.createFilter(this._session.user.id, {room: {state: {lazy_load_members: true}}}, {log}); + // syncFilterId = (await this._currentRequest.response()).filter_id; + // } const totalRequestTimeout = timeout + (80 * 1000); // same as riot-web, don't get stuck on wedged long requests this._currentRequest = this._hsApi.sync(syncToken, syncFilterId, timeout, {timeout: totalRequestTimeout, log}); const response = await this._currentRequest.response();