Move Neochat specific libQuotient events to their own folder

This commit is contained in:
James Graham
2023-05-05 19:59:45 +01:00
committed by Tobias Fella
parent e0983fcc8c
commit 4b993775c6
16 changed files with 15 additions and 16 deletions

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();
}