From fcf335e202a49c62be29566daf233866cd2f3584 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 5 Mar 2018 13:18:37 +0900 Subject: Room::toJson(): Fix caching of tags --- room.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()) { -- cgit v1.2.3