Fix html in usernames

maltee1-user_directory
Nicolas Werner 2 years ago
parent 388e0c28bd
commit ab580c0702
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      resources/qml/ElidedLabel.qml
  2. 2
      resources/qml/RoomList.qml

@ -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

@ -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
}

Loading…
Cancel
Save