This commit is contained in:
Nicolas Werner 2022-04-10 22:48:16 +02:00
parent a8810ad016
commit 3ea8a1d452
1 changed files with 4 additions and 3 deletions

View File

@ -2018,9 +2018,10 @@ TimelineModel::formatPowerLevelEvent(const QString &id)
if (number_of_affected != 0) { if (number_of_affected != 0) {
auto true_affected_rest = number_of_affected - affected.size(); auto true_affected_rest = number_of_affected - affected.size();
if (number_of_affected > 1) { if (number_of_affected > 1) {
resultingMessage.append( resultingMessage.append(default_message + QStringLiteral(" ") +
default_message + QStringLiteral(" ") + tr("%n member(s) can now redact room messages.",
tr("%n member(s) can now redact room messages.", nullptr, true_affected_rest)); nullptr,
true_affected_rest));
} else if (number_of_affected == 1) { } else if (number_of_affected == 1) {
resultingMessage.append( resultingMessage.append(
default_message + QStringLiteral(" ") + default_message + QStringLiteral(" ") +