aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 13:18:37 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-05 16:14:45 +0900
commitfcf335e202a49c62be29566daf233866cd2f3584 (patch)
tree3c55bd42cb76f35eb79c4929c2fb72d952d5c073 /room.cpp
parent6ea1fb621488910de055bd3af4d00343a763541a (diff)
downloadlibquotient-fcf335e202a49c62be29566daf233866cd2f3584.tar.gz
libquotient-fcf335e202a49c62be29566daf233866cd2f3584.zip
Room::toJson(): Fix caching of tags
Diffstat (limited to 'room.cpp')
-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())
{