From 7f6c1136ffc08b973e82d19abc6bbe4b6b3b4431 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 }