mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Make lint
This commit is contained in:
parent
91155bf803
commit
1d93570814
2 changed files with 8 additions and 6 deletions
|
@ -256,7 +256,9 @@ InputBar::message(QString msg, MarkdownOverride useMarkdown)
|
||||||
mtx::events::msg::Text text = {};
|
mtx::events::msg::Text text = {};
|
||||||
text.body = msg.trimmed().toStdString();
|
text.body = msg.trimmed().toStdString();
|
||||||
|
|
||||||
if ((ChatPage::instance()->userSettings()->markdown() && (useMarkdown != MarkdownOverride::OFF)) || (useMarkdown == MarkdownOverride::ON)) {
|
if ((ChatPage::instance()->userSettings()->markdown() &&
|
||||||
|
(useMarkdown != MarkdownOverride::OFF)) ||
|
||||||
|
(useMarkdown == MarkdownOverride::ON)) {
|
||||||
text.formatted_body = utils::markdownToHtml(msg).toStdString();
|
text.formatted_body = utils::markdownToHtml(msg).toStdString();
|
||||||
|
|
||||||
// Don't send formatted_body, when we don't need to
|
// Don't send formatted_body, when we don't need to
|
||||||
|
|
Loading…
Reference in a new issue