From f3d7fbc483507e4bdde7b1f3ffc8d5937fd1820e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 17 Nov 2022 20:35:06 +0100 Subject: [PATCH] Don't convert emotes to HTML BUG: 461837 --- src/actionshandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index 32d55c74a..a5ad8138e 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -139,6 +139,10 @@ void ActionsHandler::handleMessage() handledText = CustomEmojiModel::instance().preprocessText(handledText); handledText = markdownToHTML(handledText); + if (handledText.count("

") == 1 && handledText.count("

") == 1) { + handledText.remove("

"); + handledText.remove("

"); + } if (handledText.length() == 0) { return;