From db5f3285395c52dca16be92dcecbeeaa88a74fba Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 1 Mar 2022 00:29:48 +0100 Subject: [PATCH] Show RoomList when cached state is loaded This should somewhat speed up the loading since we don't need to wait until the first sync is done. It's still slow though since loading the cache is slow --- src/controller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller.cpp b/src/controller.cpp index 92defd35d..0aadd88f4 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -292,6 +292,9 @@ void Controller::invokeLogin() setActiveConnection(connection); connectSingleShot(connection, &Connection::syncDone, this, &Controller::initiated); } + if (!connection->nextBatchToken().isEmpty()) { + Q_EMIT initiated(); + } }); connect(connection, &Connection::loginError, this, [this, connection](const QString &error, const QString &) { if (error == "Unrecognised access token") {