summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-02 00:15:58 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-02 00:15:58 +0100
commit8beeba8e48580f553b86cbaf70c274305f4a9062 (patch)
tree2032d1164a7b05cc02663455af4f3eb5f771038d
parentFix crash on logout (diff)
downloadnheko-8beeba8e48580f553b86cbaf70c274305f4a9062.tar.xz
Fix hidden spaces hiding themselves
fixes #745
-rw-r--r--src/timeline/RoomlistModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp
index 2d60dcb3..c5bbd83c 100644
--- a/src/timeline/RoomlistModel.cpp
+++ b/src/timeline/RoomlistModel.cpp
@@ -851,7 +851,7 @@ FilteredRoomlistModel::filterAcceptsRow(int sourceRow, const QModelIndex &) cons
 
         if (!hiddenSpaces.empty()) {
             for (const auto &t : parents)
-                if (hiddenSpaces.contains(t))
+                if (t != filterStr && hiddenSpaces.contains(t))
                     return false;
         }