Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] fix(chat): Rename circles to teams in system messages #12197

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/Chat/Parser/SystemMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,19 +416,19 @@ protected function parseMessage(Message $chatMessage): void {
}
} elseif ($message === 'circle_added') {
$parsedParameters['circle'] = $this->getCircle($parameters['circle']);
$parsedMessage = $this->l->t('{actor} added circle {circle}');
$parsedMessage = $this->l->t('{actor} added team {circle}');
if ($currentUserIsActor) {
$parsedMessage = $this->l->t('You added circle {circle}');
$parsedMessage = $this->l->t('You added team {circle}');
} elseif ($cliIsActor) {
$parsedMessage = $this->l->t('An administrator added circle {circle}');
$parsedMessage = $this->l->t('An administrator added team {circle}');
}
} elseif ($message === 'circle_removed') {
$parsedParameters['circle'] = $this->getCircle($parameters['circle']);
$parsedMessage = $this->l->t('{actor} removed circle {circle}');
$parsedMessage = $this->l->t('{actor} removed team {circle}');
if ($currentUserIsActor) {
$parsedMessage = $this->l->t('You removed circle {circle}');
$parsedMessage = $this->l->t('You removed team {circle}');
} elseif ($cliIsActor) {
$parsedMessage = $this->l->t('An administrator removed circle {circle}');
$parsedMessage = $this->l->t('An administrator removed team {circle}');
}
} elseif ($message === 'phone_added') {
$parsedParameters['phone'] = $this->getPhone($room, $parameters['phone'], $parameters['name']);
Expand Down
Loading