Fix being dropped into an empty room after a join

This commit is contained in:
Nicolas Werner 2021-11-14 22:39:42 +01:00
parent c6ae336c30
commit 0a6ac211f1
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -651,14 +651,6 @@ RoomlistModel::setCurrentRoom(QString roomid)
}
emit currentRoomChanged();
} else {
currentRoom_ = nullptr;
RoomPreview p;
p.roomid_ = roomid;
currentRoomPreview_ = std::move(p);
emit currentRoomChanged();
nhlog::ui()->debug("Switched to (empty): {}", roomid.toStdString());
}
}