Fix html in usernames

This commit is contained in:
Nicolas Werner 2023-01-07 02:03:04 +01:00
parent 388e0c28bd
commit ab580c0702
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)
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
elide: Text.ElideRight
textFormat: Text.PlainText

View file

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