Fix opening room when there's not previous room

This commit is contained in:
Tobias Fella
2021-05-20 16:05:14 +02:00
parent b4cb3259e1
commit 141d1d15d5

View File

@@ -130,7 +130,7 @@ void RoomManager::enterRoom(NeoChatRoom *room)
m_lastCurrentRoom = std::exchange(m_currentRoom, room);
Q_EMIT currentRoomChanged();
if (!m_currentRoom) {
if (!m_lastCurrentRoom) {
Q_EMIT pushRoom(room, QString());
} else {
Q_EMIT replaceRoom(m_currentRoom, QString());