Escape html from redaction message

(cherry picked from commit 9ee10b6968)
This commit is contained in:
Carl Schwan
2024-09-06 16:11:44 +02:00
committed by Tobias Fella
parent 765292e0e9
commit 0f05c1b921

View File

@@ -436,7 +436,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const
if (evt.isRedacted()) {
auto reason = evt.redactedBecause()->reason();
return (reason.isEmpty()) ? i18n("<i>[This message was deleted]</i>")
: i18n("<i>[This message was deleted: %1]</i>", evt.redactedBecause()->reason());
: i18n("<i>[This message was deleted: %1]</i>", evt.redactedBecause()->reason().toHtmlEscaped());
}
return eventHandler.getRichBody();
}