Fix font tags showing up in playable media messages
This commit is contained in:
parent
4f80fbea97
commit
97340bed13
@ -194,7 +194,6 @@ Rectangle {
|
||||
Text {
|
||||
Layout.fillWidth: true
|
||||
text: model.data.body
|
||||
textFormat: Text.PlainText
|
||||
elide: Text.ElideRight
|
||||
color: colors.text
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user