From 7d546b65659b68aaa728361ea5adb79a4f924022 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 16 Apr 2021 08:39:00 -0400 Subject: [PATCH] Room items subtitles: fix redacts HTML escaping Redaction events displayed as subtitles of left pane rooms were accidentally double-escaped, leading to e.g. "X's message was removed by Y" being rendered without the apostrophe --- src/gui/Utils.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Utils.qml b/src/gui/Utils.qml index 2332413b..4f09551c 100644 --- a/src/gui/Utils.qml +++ b/src/gui/Utils.qml @@ -229,7 +229,7 @@ QtObject { // FIXME: this can generate an "argument missing" warning because // QML first gets notified of the event type change, *then* of the // content change. - let content = qsTr(escapeHtml(ev.content)).arg(sender) + let content = qsTr(ev.content).arg(sender) if (ev.content.includes("%2")) content = content.arg(coloredNameHtml(