Navigate to space when room is selected

fixes #1260
This commit is contained in:
Nicolas Werner 2023-01-07 01:39:08 +01:00
parent f3b7919a53
commit b2ccf766ba
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
5 changed files with 11 additions and 3 deletions

View file

@ -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_)) {