Clean up.

This commit is contained in:
Black Hat
2019-08-05 10:39:44 +08:00
parent ced82bd666
commit 4bba355da6
4 changed files with 77 additions and 78 deletions

View File

@@ -343,8 +343,8 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
if (evt.isRedacted()) {
auto reason = evt.redactedBecause()->reason();
return (reason.isEmpty())
? tr("Redacted")
: tr("Redacted: %1").arg(evt.redactedBecause()->reason());
? tr("[REDACTED]")
: tr("[REDACTED: %1]").arg(evt.redactedBecause()->reason());
}
if (auto e = eventCast<const RoomMessageEvent>(&evt)) {