diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 13:18:37 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 16:14:45 +0900 |
commit | fcf335e202a49c62be29566daf233866cd2f3584 (patch) | |
tree | 3c55bd42cb76f35eb79c4929c2fb72d952d5c073 /room.cpp | |
parent | 6ea1fb621488910de055bd3af4d00343a763541a (diff) | |
download | libquotient-fcf335e202a49c62be29566daf233866cd2f3584.tar.gz libquotient-fcf335e202a49c62be29566daf233866cd2f3584.zip |
Room::toJson(): Fix caching of tags
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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()) { |