From 101b57c581d4981e08a960b9ee10abe6e619c8a1 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 16 May 2022 20:26:35 +0200 Subject: [PATCH] Revert "Fix double quoting and missing new lines in message sent" This reverts commit f2cf82ee8e626ccecb43f79be2ac29f498c99faf. --- src/actionshandler.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index bee72970c..ae13f2e76 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -106,20 +106,7 @@ void ActionsHandler::postMessage(const QString &text, CustomEmojiModel *cem) { QString rawText = text; - auto stringList = text.split(QStringLiteral("```")); - QString cleanedText; - const auto count = stringList.count(); - for (int i = 0; i < count; i++) { - if (i % 2 == 0) { - if (i + 1 != count) { - cleanedText += stringList[i].toHtmlEscaped() + QStringLiteral("```"); - } else { - cleanedText += stringList[i].toHtmlEscaped(); - } - } else { - cleanedText += stringList[i] + QStringLiteral("```"); - } - } + QString cleanedText = text.toHtmlEscaped(); auto preprocess = [cem](const QString &it) -> QString { if (cem == nullptr) {