summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-22 17:03:03 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-23 00:49:28 +0100
commit97340bed13c9be1cd054b7572beb7eb7d19d4b3b (patch)
tree8dc37f3df9435e3ad778666a780d96d13cd0948a /src
parentMerge pull request #398 from Jedi18/master (diff)
downloadnheko-97340bed13c9be1cd054b7572beb7eb7d19d4b3b.tar.xz
Fix font tags showing up in playable media messages
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index 5db6f0c2..80ccabea 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -353,7 +353,8 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r return QVariant(emojiCount); } case Body: - return QVariant(utils::replaceEmoji(QString::fromStdString(body(event)))); + return QVariant( + utils::replaceEmoji(QString::fromStdString(body(event)).toHtmlEscaped())); case FormattedBody: { const static QRegularExpression replyFallback( "<mx-reply>.*</mx-reply>", QRegularExpression::DotMatchesEverythingOption);