aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--room.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 971e4121..86d1e6cd 100644
--- a/room.cpp
+++ b/room.cpp
@@ -1659,7 +1659,10 @@ QJsonObject Room::Private::toJson() const
QJsonArray accountDataEvents;
if (!tags.empty())
- accountDataEvents.append(QMatrixClient::toJson(tags));
+ accountDataEvents.append(QJsonObject(
+ { { QStringLiteral("type"), QStringLiteral("m.tag") }
+ , { QStringLiteral("content"), TagEvent(tags).toJson() }
+ }));
if (!accountData.empty())
{