summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNep Nep <nepnep91@protonmail.com>2023-12-20 20:31:48 -0300
committerGitHub <noreply@github.com>2023-12-20 20:31:48 -0300
commita691f5de3cec1da57c03a9626a7a55914ef5b3bb (patch)
tree2f6c9a18d1aac0edee9a16ad28ffcc39943f1a4a /src
parentFix memory leak and invite filtering (diff)
parentBump minimum Windows version to possibly fix msix (diff)
downloadnheko-a691f5de3cec1da57c03a9626a7a55914ef5b3bb.tar.xz
Merge branch 'Nheko-Reborn:master' into ignore-command
Diffstat (limited to 'src')
-rw-r--r--src/timeline/InputBar.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index ba1d7880..7d5e8ba3 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -464,11 +464,11 @@ InputBar::message(const QString &msg, MarkdownOverride useMarkdown, bool rainbow
         text.body = replaceMatrixToMarkdownLink(msg.trimmed()).toStdString();
 
         // Don't send formatted_body, when we don't need to
-        // Specifically, if it includes no html tag and no newlines (which behave differently in
-        // formatted bodies). Probably we forgot something, so this might need to expand at some
-        // point.
+        // Specifically, if it includes no html tag and no newlines or
+        // backslashes (which behave differently in formatted bodies). Probably
+        // we forgot something, so this might need to expand at some point.
         if (text.formatted_body.find('<') == std::string::npos &&
-            text.body.find('\n') == std::string::npos)
+            text.body.find('\n') == std::string::npos && text.body.find('\\') == std::string::npos)
             text.formatted_body = "";
         else
             text.format = "org.matrix.custom.html";
@@ -883,7 +883,7 @@ InputBar::command(const QString &command, QString args)
                                       err->matrix_error.error);
           });
     } else if (command == QLatin1String("shrug")) {
-        message("¯\\_(ツ)_/¯" + (args.isEmpty() ? QLatin1String("") : " " + args));
+        message("¯\\\\\\_(ツ)\\_/¯" + (args.isEmpty() ? QLatin1String("") : " " + args));
     } else if (command == QLatin1String("fliptable")) {
         message(QStringLiteral("(╯°□°)╯︵ ┻━┻"));
     } else if (command == QLatin1String("unfliptable")) {