Prevent opening the non-existent "Home" space in your web browser

I carved out an exception for "DM", but we need it for "Home" too.

BUG: 504842
This commit is contained in:
Joshua Goins
2025-05-30 14:43:10 +02:00
parent 90369e927f
commit bc7a663f92

View File

@@ -540,7 +540,7 @@ void RoomManager::setCurrentSpace(const QString &spaceId, bool setRoom)
const auto &lastRoom = m_lastRoomConfig.readEntry(configSpaceId, QString());
if (lastRoom.isEmpty()) {
if (spaceId != u"DM"_s) {
if (spaceId != u"DM"_s && spaceId != u"Home"_s) {
resolveResource(spaceId, "no_join"_L1);
}
} else {