summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-01-20 17:47:57 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2021-01-20 18:22:24 -0500
commit1d935708149d24b913742c76082eb10afa589ce4 (patch)
treebffba1907c76db337b0de473191541c5d1b80bd5
parentAdd commands to override Markdown setting (diff)
downloadnheko-1d935708149d24b913742c76082eb10afa589ce4.tar.xz
Make lint
-rw-r--r--src/timeline/InputBar.cpp8
-rw-r--r--src/timeline/InputBar.h6
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