mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix html messages sent as just plain text
This commit is contained in:
parent
eba02dd2e6
commit
fcaec0d099
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ TimelineViewManager::queueTextMessage(const QString &msg, const std::optional<Re
|
|||
text.formatted_body = utils::markdownToHtml(msg).toStdString();
|
||||
|
||||
// Don't send formatted_body, when we don't need to
|
||||
if (text.formatted_body == text.body)
|
||||
if (text.formatted_body.find("<") == std::string::npos)
|
||||
text.formatted_body = "";
|
||||
else
|
||||
text.format = "org.matrix.custom.html";
|
||||
|
|
Loading…
Reference in a new issue