mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix font tags showing up in playable media messages
This commit is contained in:
parent
4f80fbea97
commit
97340bed13
2 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,6 @@ Rectangle {
|
||||||
Text {
|
Text {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: model.data.body
|
text: model.data.body
|
||||||
textFormat: Text.PlainText
|
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
color: colors.text
|
color: colors.text
|
||||||
}
|
}
|
||||||
|
|
|
@ -353,7 +353,8 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
|
||||||
return QVariant(emojiCount);
|
return QVariant(emojiCount);
|
||||||
}
|
}
|
||||||
case Body:
|
case Body:
|
||||||
return QVariant(utils::replaceEmoji(QString::fromStdString(body(event))));
|
return QVariant(
|
||||||
|
utils::replaceEmoji(QString::fromStdString(body(event)).toHtmlEscaped()));
|
||||||
case FormattedBody: {
|
case FormattedBody: {
|
||||||
const static QRegularExpression replyFallback(
|
const static QRegularExpression replyFallback(
|
||||||
"<mx-reply>.*</mx-reply>", QRegularExpression::DotMatchesEverythingOption);
|
"<mx-reply>.*</mx-reply>", QRegularExpression::DotMatchesEverythingOption);
|
||||||
|
|
Loading…
Reference in a new issue