Improve room setting

* Port away from OverlaySheet
* Use Kirigami.CategorizedSettings
* Add join rules (read only for now)
This commit is contained in:
Carl Schwan
2021-10-16 23:00:50 +02:00
parent 6b8358874a
commit 890860df92
13 changed files with 369 additions and 218 deletions

16
src/joinrulesevent.cpp Normal file
View File

@@ -0,0 +1,16 @@
// SPDX-FileCopyrightText: 2019 Kitsune Ral <Kitsune-Ral@users.sf.net>
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "joinrulesevent.h"
using namespace Quotient;
QString JoinRulesEvent::joinRule() const
{
return fromJson<QString>(contentJson()["join_rule"_ls]);
}
QJsonArray JoinRulesEvent::allow() const
{
return contentJson()["allow"_ls].toArray();
}