Add more specific group change notification string

This commit is contained in:
Fedor Indutny
2024-01-03 02:13:54 +01:00
committed by GitHub
parent b3cada3d10
commit ce35f686e6
2 changed files with 5 additions and 3 deletions

View File

@@ -4355,6 +4355,10 @@
"messageformat": "{adminName} denied a request to join the group from {joinerName}.",
"description": "Shown in timeline or conversation preview when v2 group changes"
},
"icu:GroupV2--admin-approval-remove-one--other--unknown": {
"messageformat": "A request to join the group from {joinerName} was denied.",
"description": "Shown in timeline or conversation preview when v2 group changes"
},
"icu:GroupV2--admin-approval-bounce--one": {
"messageformat": "{joinerName} requested and cancelled their request to join via the group link",
"description": "Shown in timeline or conversation preview when v2 group changes"

View File

@@ -773,10 +773,8 @@ export function renderChangeDetail<T>(
);
}
// We default to the user canceling their request, because it is far more likely that
// if an admin does the denial, we'll get a change event from them.
return i18n(
'icu:GroupV2--admin-approval-remove-one--other--own',
'icu:GroupV2--admin-approval-remove-one--other--unknown',
{ joinerName: renderContact(aci) }
);