aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-01-28 17:03:16 +0100
committerGitHub <noreply@github.com>2021-01-28 17:03:16 +0100
commit3fbd9ca775caeca4a28aeb48f5c8db013659c263 (patch)
tree74ab1e89101a46f57d1990075bd938019159c188 /lib
parent6da63e11a2c8c9cc7d9e6fff0293d5e973071af0 (diff)
parentdf6b2d31ec8f2f5890826719e960f450a4968f22 (diff)
downloadlibquotient-3fbd9ca775caeca4a28aeb48f5c8db013659c263.tar.gz
libquotient-3fbd9ca775caeca4a28aeb48f5c8db013659c263.zip
Merge pull request #449 from rpallai/richeditfix
Fix rich edits (transmit)
Diffstat (limited to 'lib')
-rw-r--r--lib/events/roommessageevent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp
index 3fccb380..a9d9754f 100644
--- a/lib/events/roommessageevent.cpp
+++ b/lib/events/roommessageevent.cpp
@@ -332,8 +332,8 @@ void TextContent::fillJson(QJsonObject* json) const
if (relatesTo->type == RelatesTo::ReplacementTypeId()) {
QJsonObject newContentJson;
if (mimeType.inherits("text/html")) {
- json->insert(FormatKey, HtmlContentTypeId);
- json->insert(FormattedBodyKey, body);
+ newContentJson.insert(FormatKey, HtmlContentTypeId);
+ newContentJson.insert(FormattedBodyKey, body);
}
json->insert(QStringLiteral("m.new_content"), newContentJson);
}