aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoland Pallai <dap78@magex.hu>2020-02-10 16:01:08 +0100
committerRoland Pallai <dap78@magex.hu>2020-02-10 16:34:03 +0100
commit5072340473b23b77ebb7d4e91f3727ff30950a9a (patch)
treefecb39d5b9f593a057379e7ec5474466ba67a8a6 /lib
parent9bcf0cbc3d690663d37d1737173ab5088fed152f (diff)
downloadlibquotient-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.cpp2
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;
}