From 2fc4c6456ffa913ad702549d90818f3a7a1564d9 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 10 Oct 2021 12:26:35 +0200 Subject: [PATCH] Escape more html --- imports/NeoChat/Component/ChatBox/ReplyPane.qml | 2 +- imports/NeoChat/Menu/Timeline/MessageDelegateContextMenu.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imports/NeoChat/Component/ChatBox/ReplyPane.qml b/imports/NeoChat/Component/ChatBox/ReplyPane.qml index d283fe06f..f5cb00cb9 100644 --- a/imports/NeoChat/Component/ChatBox/ReplyPane.qml +++ b/imports/NeoChat/Component/ChatBox/ReplyPane.qml @@ -57,7 +57,7 @@ Loader { elide: Text.ElideRight text: { let heading = "%1" - let userName = user ? "" + user.displayName + "" : "" + let userName = user ? "" + currentRoom.htmlSafeMemberName(user.id) + "" : "" if (isEdit) { heading = heading.arg(i18n("Editing message:")) + "
" } else { diff --git a/imports/NeoChat/Menu/Timeline/MessageDelegateContextMenu.qml b/imports/NeoChat/Menu/Timeline/MessageDelegateContextMenu.qml index a4529e085..ffa0c1135 100644 --- a/imports/NeoChat/Menu/Timeline/MessageDelegateContextMenu.qml +++ b/imports/NeoChat/Menu/Timeline/MessageDelegateContextMenu.qml @@ -130,7 +130,7 @@ Loader { Kirigami.Heading { level: 3 Layout.fillWidth: true - text: author.displayName + text: currentRoom.htmlSafeMemberName(author.id) wrapMode: Text.WordWrap } QQC2.Label {