From 1d935708149d24b913742c76082eb10afa589ce4 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Wed, 20 Jan 2021 17:47:57 -0500 Subject: [PATCH] Make lint --- src/timeline/InputBar.cpp | 8 +++++--- src/timeline/InputBar.h | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp index 49dd837b..0e35cf64 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp @@ -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); } } diff --git a/src/timeline/InputBar.h b/src/timeline/InputBar.h index 75bcdc3a..57b38c08 100644 --- a/src/timeline/InputBar.h +++ b/src/timeline/InputBar.h @@ -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