diff options
author | Roland Pallai <dap78@magex.hu> | 2020-02-10 16:01:08 +0100 |
---|---|---|
committer | Roland Pallai <dap78@magex.hu> | 2020-02-10 16:34:03 +0100 |
commit | 5072340473b23b77ebb7d4e91f3727ff30950a9a (patch) | |
tree | fecb39d5b9f593a057379e7ec5474466ba67a8a6 /lib | |
parent | 9bcf0cbc3d690663d37d1737173ab5088fed152f (diff) | |
download | libquotient-5072340473b23b77ebb7d4e91f3727ff30950a9a.tar.gz libquotient-5072340473b23b77ebb7d4e91f3727ff30950a9a.zip |
Edit (transmit): fix json struct of `m.new_content`
Diffstat (limited to 'lib')
-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 078ae70a..9ee476e8 100644 --- a/lib/events/roommessageevent.cpp +++ b/lib/events/roommessageevent.cpp @@ -120,7 +120,7 @@ QJsonObject RoomMessageEvent::assembleContentJson(const QString& plainBody, if (textContent->relatesTo->type == RelatesTo::ReplacementTypeId()) { auto newContentJson = json.take("m.new_content"_ls).toObject(); newContentJson.insert(BodyKey, plainBody); - newContentJson.insert(TypeKey, jsonMsgType); + newContentJson.insert(MsgTypeKeyL, jsonMsgType); json.insert(QStringLiteral("m.new_content"), newContentJson); json[BodyKeyL] = "* " + plainBody; } |