Show the community of a room

This commit is contained in:
Nicolas Werner 2022-09-20 21:26:28 +02:00
parent 7088c9bd9b
commit 421b15c05c
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
8 changed files with 143 additions and 10 deletions

View file

@ -605,6 +605,20 @@ CommunitiesModel::setCurrentTagId(const QString &tagId)
emit currentTagIdChanged(currentTagId_);
}
bool
CommunitiesModel::trySwitchToSpace(const QString &tag)
{
for (const auto &t : spaceOrder_.tree) {
if (t.id == tag) {
this->currentTagId_ = "space:" + tag;
emit currentTagIdChanged(currentTagId_);
return true;
}
}
return false;
}
void
CommunitiesModel::toggleTagId(QString tagId)
{