diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp index 179c63af642f81e6da9560536de3b4672567fc50..cc9ff8002c41d1efda182b912391b595a9377683 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp @@ -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()); } }