diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-07 01:39:08 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-07 01:39:08 +0100 |
commit | b2ccf766ba2e5880b463f41c47bd2ae3c3f28a89 (patch) | |
tree | fb3bf26c470f386b99cf7d256c626250484c5f35 /src/timeline/CommunitiesModel.cpp | |
parent | Fix crash in migrations during secrets deletion (diff) | |
download | nheko-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.cpp | 3 |
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_)) { |