From ab580c0702405cd0a38b57a843bb8a3e60614a3f Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 7 Jan 2023 02:03:04 +0100 Subject: [PATCH] Fix html in usernames --- resources/qml/ElidedLabel.qml | 2 +- resources/qml/RoomList.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/ElidedLabel.qml b/resources/qml/ElidedLabel.qml index 4c734cc5..321fa279 100644 --- a/resources/qml/ElidedLabel.qml +++ b/resources/qml/ElidedLabel.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 diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index 24b62fd2..a1abed00 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -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 }