Don't push too many room pages when switching accounts
This commit is contained in:
@@ -114,11 +114,7 @@ void RoomManager::openRoomForActiveConnection()
|
|||||||
Controller::instance().activeConnection()->room(roomId));
|
Controller::instance().activeConnection()->room(roomId));
|
||||||
|
|
||||||
if (room) {
|
if (room) {
|
||||||
m_lastCurrentRoom = std::exchange(m_currentRoom, room);
|
enterRoom(room);
|
||||||
Q_EMIT currentRoomChanged();
|
|
||||||
Q_EMIT pushRoom(room, QString());
|
|
||||||
} else {
|
|
||||||
Q_EMIT pushWelcomePage();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Q_EMIT pushWelcomePage();
|
Q_EMIT pushWelcomePage();
|
||||||
|
|||||||
Reference in New Issue
Block a user