Skip to content

Commit

Permalink
runfix: simplify copy for user being offline for too long (#16908)
Browse files Browse the repository at this point in the history
* runfix: simplify copy for user being offline for too long

* test: update test with new copy
  • Loading branch information
PatrykBuniX authored Feb 26, 2024
1 parent ad47e5c commit 002b101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 3 additions & 5 deletions src/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -636,18 +636,16 @@
"extensionsGiphyMessage": "{{tag}} • via giphy.com",
"extensionsGiphyNoGifs": "Oops, no gifs",
"extensionsGiphyRandom": "Random",

"failedToAddParticipantsPluralDetailsOfflineForTooLong": "[bold]{{names}}[/bold] and [bold]{{name}}[/bold] could not be added to the group as they have been offline for too long.",
"failedToAddParticipantSingularOfflineForTooLong": "[bold]{{name}}[/bold] could not be added to the group as they have been offline for too long.",
"failedToAddParticipantsSingularDetailsOfflineForTooLong": "[bold]{{name}}[/bold] could not be added to the group as they have been offline for too long.",

"failedToAddParticipantSingularNonFederatingBackends": "[bold]{{name}}[/bold] could not be added to the group as their backend doesn't federate with the backends of all group participants.",
"failedToAddParticipantSingularOfflineBackend": "[bold]{{name}}[/bold] could not be added to the group as the backend of [bold]{{domain}}[/bold] could not be reached.",
"failedToAddParticipantSingularOfflineForTooLong": "[bold]{{name}}[/bold] could not be added to the group.",
"failedToAddParticipantsPlural": "[bold]{{total}} participants[/bold] could not be added to the group.",
"failedToAddParticipantsPluralDetailsNonFederatingBackends": "[bold]{{names}}[/bold] and [bold]{{name}}[/bold] could not be added to the group as their backends do not federate with each other.",
"failedToAddParticipantsPluralDetailsOfflineBackend": "[bold]{{names}}[/bold] and [bold]{{name}}[/bold] could not be added to the group as the backend of [bold]{{domain}}[/bold] could not be reached.",
"failedToAddParticipantsPluralDetailsOfflineForTooLong": "[bold]{{names}}[/bold] and [bold]{{name}}[/bold] could not be added to the group.",
"failedToAddParticipantsSingularDetailsNonFederatingBackends": "[bold]{{name}}[/bold] could not be added to the group as their backends do not federate with each other.",
"failedToAddParticipantsSingularDetailsOfflineBackend": "[bold]{{name}}[/bold] could not be added to the group as the backend of [bold]{{domain}}[/bold] could not be reached.",
"failedToAddParticipantsSingularDetailsOfflineForTooLong": "[bold]{{name}}[/bold] could not be added to the group.",
"featureConfigChangeModalApplock": "Mandatory app lock is now disabled. You do not need a passcode or biometric authentication when returning to the app.",
"featureConfigChangeModalApplockHeadline": "Team settings changed",
"featureConfigChangeModalAudioVideoDescriptionItemCameraDisabled": "Camera in calls is disabled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,7 @@ describe('FailedToAddUsersMessage', () => {
expect(details2.length).toBeGreaterThanOrEqual(1);

const details3 = getAllByText(
(_, element) =>
element?.textContent ===
`${user3.name()} could not be added to the group as they have been offline for too long.`,
(_, element) => element?.textContent === `${user3.name()} could not be added to the group.`,
);

expect(details3.length).toBeGreaterThanOrEqual(1);
Expand Down

0 comments on commit 002b101

Please sign in to comment.