From 6b453c1ec485e28aa9fe31ee41991e7bce7054a3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 7 May 2020 18:46:45 +0200 Subject: [PATCH] we need to start when online actually, so invert --- src/matrix/SessionContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index b6b2940a..04df8680 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -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); }