mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
we need to start when online actually, so invert
This commit is contained in:
parent
24cb9e3f5c
commit
6b453c1ec4
@ -152,7 +152,7 @@ export class SessionContainer {
|
||||
// restored the connection, it would have already
|
||||
// started to session, so check first
|
||||
// to prevent an extra /versions request
|
||||
if (!this._session.isStarted) {
|
||||
if (this._session.isStarted) {
|
||||
const lastVersionsResponse = await hsApi.versions({timeout: 10000}).response();
|
||||
this._session.start(lastVersionsResponse);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user