diff options
author | Roland Pallai <dap78@magex.hu> | 2020-02-10 16:03:01 +0100 |
---|---|---|
committer | Roland Pallai <dap78@magex.hu> | 2020-02-10 16:38:26 +0100 |
commit | e5e9aa06ca9fb936e34d56c47cccb4111f2e80bd (patch) | |
tree | 345a0700a8eb8f608b47e7eefe2e4cd9589c1597 /lib/events | |
parent | 5072340473b23b77ebb7d4e91f3727ff30950a9a (diff) | |
download | libquotient-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.cpp | 2 |
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; } } } |