Fix html in usernames

This commit is contained in:
Nicolas Werner 2023-01-07 02:03:04 +01:00
parent b2ccf766ba
commit 7f6c1136ff
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ Label {
property int fullTextWidth: Math.ceil(metrics.advanceWidth) property int fullTextWidth: Math.ceil(metrics.advanceWidth)
color: Nheko.colors.text color: Nheko.colors.text
text: (textFormat == Text.PlainText) ? metrics.elidedText : TimelineManager.escapeEmoji(TimelineManager.htmlEscape(metrics.elidedText)) text: (textFormat == Text.PlainText) ? metrics.elidedText : TimelineManager.escapeEmoji(metrics.elidedText)
maximumLineCount: 1 maximumLineCount: 1
elide: Text.ElideRight elide: Text.ElideRight
textFormat: Text.PlainText textFormat: Text.PlainText

View file

@ -387,7 +387,7 @@ Page {
Layout.alignment: Qt.AlignBaseline Layout.alignment: Qt.AlignBaseline
color: roomItem.importantText color: roomItem.importantText
elideWidth: width elideWidth: width
fullText: roomName fullText: TimelineManager.htmlEscape(roomName)
textFormat: Text.RichText textFormat: Text.RichText
Layout.fillWidth: true Layout.fillWidth: true
} }