aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorRoland Pallai <dap78@magex.hu>2020-02-10 16:03:01 +0100
committerRoland Pallai <dap78@magex.hu>2020-02-10 16:38:26 +0100
commite5e9aa06ca9fb936e34d56c47cccb4111f2e80bd (patch)
tree345a0700a8eb8f608b47e7eefe2e4cd9589c1597 /lib/events
parent5072340473b23b77ebb7d4e91f3727ff30950a9a (diff)
downloadlibquotient-e5e9aa06ca9fb936e34d56c47cccb4111f2e80bd.tar.gz
libquotient-e5e9aa06ca9fb936e34d56c47cccb4111f2e80bd.zip
Edit (transmit): fix asterisk marking for dumb clients
The prepared body got overwritten due to missing return statement.
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/roommessageevent.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp
index 9ee476e8..7745e6b9 100644
--- a/lib/events/roommessageevent.cpp
+++ b/lib/events/roommessageevent.cpp
@@ -122,7 +122,9 @@ QJsonObject RoomMessageEvent::assembleContentJson(const QString& plainBody,
newContentJson.insert(BodyKey, plainBody);
newContentJson.insert(MsgTypeKeyL, jsonMsgType);
json.insert(QStringLiteral("m.new_content"), newContentJson);
+ json[MsgTypeKeyL] = jsonMsgType;
json[BodyKeyL] = "* " + plainBody;
+ return json;
}
}
}