summary refs log tree commit diff
path: root/src/timeline/TimelineView.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-12 14:20:12 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-12 14:20:12 +0300
commitdd73a4b2786a0b934f338fbf9d07032a13ac6a94 (patch)
tree4054e9ef7d755187145f48a387e8045b8ef9af89 /src/timeline/TimelineView.cpp
parentEnable html attributes (diff)
downloadnheko-dd73a4b2786a0b934f338fbf9d07032a13ac6a94.tar.xz
Trim whitespace from text messages
Diffstat (limited to 'src/timeline/TimelineView.cpp')
-rw-r--r--src/timeline/TimelineView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeline/TimelineView.cpp b/src/timeline/TimelineView.cpp

index 87fa18db..e50bfa21 100644 --- a/src/timeline/TimelineView.cpp +++ b/src/timeline/TimelineView.cpp
@@ -1237,7 +1237,7 @@ toRoomMessage<mtx::events::msg::Emote>(const PendingMessage &m) mtx::events::msg::Emote emote; emote.body = utils::stripHtml(html); - emote.formatted_body = html; + emote.formatted_body = html.toStdString(); return emote; } @@ -1262,7 +1262,7 @@ toRoomMessage<mtx::events::msg::Text>(const PendingMessage &m) mtx::events::msg::Text text; text.body = utils::stripHtml(html); - text.formatted_body = html; + text.formatted_body = html.toStdString(); return text; }