some notes

This commit is contained in:
Bruno Windels 2020-04-20 21:27:07 +02:00
parent 001dbefbcf
commit 0f29fdb24e
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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);