summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-20 17:09:49 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-20 18:27:29 +0100
commitfcaec0d0994974344bf951fadf3a06c2ff7b363f (patch)
treed31138554988cd430068ccd477158b84df89652d /src
parentMerge pull request #122 from adasauce/usersettings-formlayout (diff)
downloadnheko-fcaec0d0994974344bf951fadf3a06c2ff7b363f.tar.xz
Fix html messages sent as just plain text
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineViewManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index 2426d810..7cd1432d 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -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";