Hide spaces by default, unless they are in the current space filter
This commit is contained in:
parent
0ec7be3090
commit
f349b0cce0
4 changed files with 59 additions and 7 deletions
|
|
@ -320,6 +320,10 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
|
|||
{
|
||||
lastMessage_.timestamp = 0;
|
||||
|
||||
if (auto create =
|
||||
cache::client()->getStateEvent<mtx::events::state::Create>(room_id.toStdString()))
|
||||
this->isSpace_ = create->content.type == mtx::events::state::room_type::space;
|
||||
|
||||
connect(
|
||||
this,
|
||||
&TimelineModel::redactionFailed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue