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
This commit is contained in:
miruka 2021-04-16 08:39:00 -04:00
parent b6773c724e
commit 7d546b6565

View File

@ -229,7 +229,7 @@ QtObject {
// FIXME: this can generate an "argument missing" warning because // FIXME: this can generate an "argument missing" warning because
// QML first gets notified of the event type change, *then* of the // QML first gets notified of the event type change, *then* of the
// content change. // content change.
let content = qsTr(escapeHtml(ev.content)).arg(sender) let content = qsTr(ev.content).arg(sender)
if (ev.content.includes("%2")) if (ev.content.includes("%2"))
content = content.arg(coloredNameHtml( content = content.arg(coloredNameHtml(