Skip to content
Snippets Groups Projects
Verified Commit c74e68c9 authored by Loren Burkholder's avatar Loren Burkholder Committed by Nicolas Werner
Browse files

Parse markdown overrides during replies

I apparently missed this when I originally added the overrides.
parent 029ae18a
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,9 @@ InputBar::message(QString msg, MarkdownOverride useMarkdown)
// NOTE(Nico): rich replies always need a formatted_body!
text.format = "org.matrix.custom.html";
if (ChatPage::instance()->userSettings()->markdown())
if ((ChatPage::instance()->userSettings()->markdown() &&
useMarkdown == MarkdownOverride::NOT_SPECIFIED) ||
useMarkdown == MarkdownOverride::ON)
text.formatted_body =
utils::getFormattedQuoteBody(related, utils::markdownToHtml(msg))
.toStdString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment