Fix html messages sent as just plain text

pull/125/head
Nicolas Werner 5 years ago
parent eba02dd2e6
commit fcaec0d099
  1. 2
      src/timeline/TimelineViewManager.cpp

@ -195,7 +195,7 @@ TimelineViewManager::queueTextMessage(const QString &msg, const std::optional<Re
text.formatted_body = utils::markdownToHtml(msg).toStdString(); text.formatted_body = utils::markdownToHtml(msg).toStdString();
// Don't send formatted_body, when we don't need to // 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 = ""; text.formatted_body = "";
else else
text.format = "org.matrix.custom.html"; text.format = "org.matrix.custom.html";

Loading…
Cancel
Save