Devtools: Implement changing room state

This commit is contained in:
Tobias Fella
2024-03-03 00:19:19 +01:00
parent d2695947ed
commit c344a3ee55
13 changed files with 236 additions and 33 deletions

View File

@@ -3,6 +3,8 @@
#include "utils.h"
#include <QJsonDocument>
using namespace Quotient;
static const QVariantMap emptyUser = {
@@ -41,3 +43,8 @@ QVariantMap QmlUtils::getUser(User *user) const
{QStringLiteral("object"), QVariant::fromValue(user)},
};
}
bool QmlUtils::isValidJson(const QByteArray &json)
{
return !QJsonDocument::fromJson(json).isNull();
}