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
This commit is contained in:
Tobias Fella
2022-03-01 00:29:48 +01:00
parent 9ac1fbd99b
commit db5f328539

View File

@@ -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") {