Fix opening "Home space" on startup

There was a mismatch here between the value used in the config ("Home") and the value used in the property (empty string)
This commit is contained in:
Tobias Fella
2025-08-23 00:42:06 +02:00
parent bd80390daa
commit ee33a70bb2

View File

@@ -347,7 +347,11 @@ void RoomManager::openRoomForActiveConnection()
setCurrentSpace({}, false);
return;
}
setCurrentSpace(m_lastSpaceConfig.readEntry(m_connection->userId(), QString()), true);
auto lastSpace = m_lastSpaceConfig.readEntry(m_connection->userId(), QString());
if (lastSpace == u"Home"_s) {
lastSpace.clear();
}
setCurrentSpace(lastSpace, true);
}
UriResolveResult RoomManager::visitUser(User *user, const QString &action)