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:
parent
b6773c724e
commit
7d546b6565
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user