From 0a6ac211f1d7a518bc0e85b4a6b566c88362e38b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 14 Nov 2021 22:39:42 +0100 Subject: [PATCH] Fix being dropped into an empty room after a join --- src/timeline/RoomlistModel.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp index 179c63af..cc9ff800 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()); } }