Improve room setting
* Port away from OverlaySheet * Use Kirigami.CategorizedSettings * Add join rules (read only for now)
This commit is contained in:
16
src/joinrulesevent.cpp
Normal file
16
src/joinrulesevent.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user