Don't convert emotes to HTML

BUG: 461837
This commit is contained in:
Tobias Fella
2022-11-17 20:35:06 +01:00
parent d07066e540
commit f3d7fbc483

View File

@@ -139,6 +139,10 @@ void ActionsHandler::handleMessage()
handledText = CustomEmojiModel::instance().preprocessText(handledText);
handledText = markdownToHTML(handledText);
if (handledText.count("<p>") == 1 && handledText.count("</p>") == 1) {
handledText.remove("<p>");
handledText.remove("</p>");
}
if (handledText.length() == 0) {
return;