Make lint

This commit is contained in:
Loren Burkholder 2021-01-20 17:47:57 -05:00
parent 91155bf803
commit 1d93570814
2 changed files with 8 additions and 6 deletions

View file

@ -256,7 +256,9 @@ InputBar::message(QString msg, MarkdownOverride useMarkdown)
mtx::events::msg::Text text = {};
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();
// Don't send formatted_body, when we don't need to
@ -478,9 +480,9 @@ InputBar::command(QString command, QString args)
} else if (command == "rotate-megolm-session") {
cache::dropOutboundMegolmSession(room->roomId().toStdString());
} else if (command == "md") {
message(args, MarkdownOverride::ON);
message(args, MarkdownOverride::ON);
} else if (command == "plain") {
message(args, MarkdownOverride::OFF);
message(args, MarkdownOverride::OFF);
}
}

View file

@ -14,9 +14,9 @@ class QStringList;
enum class MarkdownOverride
{
NONE, // no override set
ON,
OFF,
NONE, // no override set
ON,
OFF,
};
class InputBar : public QObject