diff --git a/doc/impl-thoughts/RECONNECTING.md b/doc/impl-thoughts/RECONNECTING.md index 5e507834..5e09772e 100644 --- a/doc/impl-thoughts/RECONNECTING.md +++ b/doc/impl-thoughts/RECONNECTING.md @@ -44,6 +44,9 @@ rooms should report how many messages they have queued up, and each time they se - DONE: add SyncStatus as ObservableValue of enum in Sync - DONE: cleanup SessionContainer - move all imports to non-default + - remove #ifdef + - move EventEmitter to utils + - move all lower-cased files - change main.js to pass in a creation function of a SessionContainer instead of everything it is replacing - show load progress in LoginView/SessionPickView and do away with loading screen - adjust BrawlViewModel, SessionPickViewModel and LoginViewModel to use a SessionContainer diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index eeea0b66..673bed82 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -80,6 +80,7 @@ export class Sync { async _syncRequest(syncToken, timeout) { let {syncFilterId} = this._session; if (typeof syncFilterId !== "string") { + // TODO: this should be interruptable by stop, we can reuse _currentRequest syncFilterId = (await this._hsApi.createFilter(this._session.user.id, {room: {state: {lazy_load_members: true}}}).response()).filter_id; } this._currentRequest = this._hsApi.sync(syncToken, syncFilterId, timeout);