Don't suggest joining the last opened room when neochat is started after the cache was cleared
This commit is contained in:
@@ -239,10 +239,11 @@ void RoomManager::openRoomForActiveConnection()
|
|||||||
if (!m_connection) {
|
if (!m_connection) {
|
||||||
m_currentRoom = nullptr;
|
m_currentRoom = nullptr;
|
||||||
}
|
}
|
||||||
if (m_lastRoomConfig.readEntry(m_connection->userId(), QString()).isEmpty()) {
|
const auto &lastRoom = m_lastRoomConfig.readEntry(m_connection->userId(), QString());
|
||||||
|
if (lastRoom.isEmpty() || !m_connection->room(lastRoom)) {
|
||||||
setCurrentRoom({});
|
setCurrentRoom({});
|
||||||
} else {
|
} else {
|
||||||
resolveResource(m_lastRoomConfig.readEntry(m_connection->userId(), QString()));
|
resolveResource(lastRoom);
|
||||||
}
|
}
|
||||||
setCurrentSpace(m_lastSpaceConfig.readEntry(m_connection->userId(), QString()), false);
|
setCurrentSpace(m_lastSpaceConfig.readEntry(m_connection->userId(), QString()), false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user