mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
add TODO comment
This commit is contained in:
parent
464615ab21
commit
9712b397ce
@ -152,6 +152,10 @@ export class SessionContainer {
|
||||
// restored the connection, it would have already
|
||||
// started to session, so check first
|
||||
// to prevent an extra /versions request
|
||||
|
||||
// TODO: this doesn't look logical, but works. Why?
|
||||
// I think because isStarted is true by default. That's probably not what we intend.
|
||||
// I think there is a bug here, in that even if the reconnector already started the session, we'd still do this.
|
||||
if (this._session.isStarted) {
|
||||
const lastVersionsResponse = await hsApi.versions({timeout: 10000}).response();
|
||||
this._session.start(lastVersionsResponse);
|
||||
|
Loading…
Reference in New Issue
Block a user