summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-14 22:39:42 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-14 22:39:42 +0100
commit0a6ac211f1d7a518bc0e85b4a6b566c88362e38b (patch)
tree58998bb83f8c9565cf483b896b1c43c0cf97c9e7
parentReenable still image viewer for WebP until we qmlify the image viewer (diff)
downloadnheko-0a6ac211f1d7a518bc0e85b4a6b566c88362e38b.tar.xz
Fix being dropped into an empty room after a join
-rw-r--r--src/timeline/RoomlistModel.cpp8
1 files changed, 0 insertions, 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()); } }