diff options
author | Roland Pallai <dap78@magex.hu> | 2020-02-10 16:24:00 +0100 |
---|---|---|
committer | Roland Pallai <dap78@magex.hu> | 2020-02-10 16:40:08 +0100 |
commit | 1c3373484b96fb8bc855f02caa87bad7567c5e17 (patch) | |
tree | db84b8718bc5b05cde9fca6b6897a6436709467e /lib/events | |
parent | e5e9aa06ca9fb936e34d56c47cccb4111f2e80bd (diff) | |
download | libquotient-1c3373484b96fb8bc855f02caa87bad7567c5e17.tar.gz libquotient-1c3373484b96fb8bc855f02caa87bad7567c5e17.zip |
TextContent: use MSC-1849 compatible `m.relates_to` field
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/roommessageevent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp index 7745e6b9..a6620618 100644 --- a/lib/events/roommessageevent.cpp +++ b/lib/events/roommessageevent.cpp @@ -338,7 +338,7 @@ void TextContent::fillJson(QJsonObject* json) const } if (relatesTo) { json->insert(QStringLiteral("m.relates_to"), - QJsonObject { { relatesTo->type, relatesTo->eventId } }); + QJsonObject { { "rel_type", relatesTo->type }, { "event_id", relatesTo->eventId } }); if (relatesTo->type == RelatesTo::ReplacementTypeId()) { QJsonObject newContentJson; if (mimeType.inherits("text/html")) { |