Don't push too many room pages when switching accounts

This commit is contained in:
Tobias Fella
2021-08-03 17:20:27 +02:00
parent db77dad0c2
commit 77318436ad

View File

@@ -114,11 +114,7 @@ void RoomManager::openRoomForActiveConnection()
Controller::instance().activeConnection()->room(roomId));
if (room) {
m_lastCurrentRoom = std::exchange(m_currentRoom, room);
Q_EMIT currentRoomChanged();
Q_EMIT pushRoom(room, QString());
} else {
Q_EMIT pushWelcomePage();
enterRoom(room);
}
} else {
Q_EMIT pushWelcomePage();