summary refs log tree commit diff
path: root/src/timeline/CommunitiesModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-01-07 01:39:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-01-07 01:39:08 +0100
commitb2ccf766ba2e5880b463f41c47bd2ae3c3f28a89 (patch)
treefb3bf26c470f386b99cf7d256c626250484c5f35 /src/timeline/CommunitiesModel.cpp
parentFix crash in migrations during secrets deletion (diff)
downloadnheko-b2ccf766ba2e5880b463f41c47bd2ae3c3f28a89.tar.xz
Navigate to space when room is selected
fixes #1260
Diffstat (limited to 'src/timeline/CommunitiesModel.cpp')
-rw-r--r--src/timeline/CommunitiesModel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timeline/CommunitiesModel.cpp b/src/timeline/CommunitiesModel.cpp
index 9f34c3ff..92b6017d 100644
--- a/src/timeline/CommunitiesModel.cpp
+++ b/src/timeline/CommunitiesModel.cpp
@@ -579,6 +579,9 @@ CommunitiesModel::sync(const mtx::responses::Sync &sync_)
 void
 CommunitiesModel::setCurrentTagId(const QString &tagId)
 {
+    if (currentTagId_ == tagId)
+        return;
+
     if (tagId.startsWith(QLatin1String("tag:"))) {
         auto tag = tagId.mid(4);
         for (const auto &t : qAsConst(tags_)) {