diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index c7687ab6..e967da8c 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -20,6 +20,8 @@ #include #include +#include + #include #include @@ -578,8 +580,7 @@ InputBar::message(const QString &msg, MarkdownOverride useMarkdown, bool rainbow } } - text.body = - QStringLiteral("%1\n%2").arg(body, QString::fromStdString(text.body)).toStdString(); + text.body = fmt::format("{}\n{}", body.toStdString(), text.body); // NOTE(Nico): rich replies always need a formatted_body! text.format = "org.matrix.custom.html";