Show the community of a room
This commit is contained in:
parent
7088c9bd9b
commit
421b15c05c
8 changed files with 143 additions and 10 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue