feat: Write and display reason for redacting a message

This commit is contained in:
krille-chan 2023-08-12 12:52:55 +02:00
commit 5e3c62110b
No known key found for this signature in database
4 changed files with 60 additions and 36 deletions

View file

@ -1061,6 +1061,8 @@
"type": "text",
"placeholders": {}
},
"redactMessageDescription": "The message will be redacted for all participants in this conversation. This cannot be undone.",
"optionalRedactReason": "(Optional) Reason for redacting this message...",
"invitedUser": "📩 {username} invited {targetName}",
"@invitedUser": {
"type": "text",
@ -1568,6 +1570,21 @@
"type": "text",
"placeholders": {}
},
"redactedBy": "Redacted by {username}",
"@redactedBy": {
"type": "text",
"placeholders": {
"username": {}
}
},
"redactedByBecause": "Redacted by {username} because: \"{reason}\"",
"@redactedByBecause": {
"type": "text",
"placeholders": {
"username": {},
"reason": {}
}
},
"redactedAnEvent": "{username} redacted an event",
"@redactedAnEvent": {
"type": "text",