diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 96de0690b..8e11528e4 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -864,7 +864,7 @@ void NeoChatRoom::postHtmlMessage(const QString &text, const QString &html, Mess // clang-format off QJsonObject json{ {"msgtype"_ls, msgTypeToString(type)}, - {"body"_ls, "> <%1> \n\n%3"_ls.arg(replyEvt.senderId(), eventToString(replyEvt), text)}, + {"body"_ls, "> <%1> %2\n\n%3"_ls.arg(replyEvt.senderId(), eventToString(replyEvt), text)}, {"format"_ls, "org.matrix.custom.html"_ls}, {"m.relates_to"_ls, QJsonObject { @@ -876,7 +876,7 @@ void NeoChatRoom::postHtmlMessage(const QString &text, const QString &html, Mess } }, {"formatted_body"_ls, - "
In reply to %4
%5
"_ls.arg(id(), replyEventId, replyEvt.senderId(), replyEvt.senderId(), eventToString(replyEvt, Qt::RichText)) + "
In reply to %4
%5
%6"_ls.arg(id(), replyEventId, replyEvt.senderId(), replyEvt.senderId(), eventToString(replyEvt, Qt::RichText), html) } }; // clang-format on