[FIX] Wrong param sent to system message (#3943)

* [FIX] Display added user to team

* tweak when remove members from team too

* update storyshot

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
This commit is contained in:
Reinaldo Neto 2022-03-21 17:25:40 -03:00 committed by GitHub
parent 2ff48471d6
commit 82acb917fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -173,10 +173,10 @@ export const getInfoMessage = ({ type, role, msg, author }: TInfoMessage): strin
return I18n.t('This_room_encryption_has_been_enabled_by__username_', { username }); return I18n.t('This_room_encryption_has_been_enabled_by__username_', { username });
} }
if (type === 'removed-user-from-team') { if (type === 'removed-user-from-team') {
return I18n.t('Removed__username__from_team', { user_removed: username }); return I18n.t('Removed__username__from_team', { user_removed: msg });
} }
if (type === 'added-user-to-team') { if (type === 'added-user-to-team') {
return I18n.t('Added__username__to_team', { user_added: username }); return I18n.t('Added__username__to_team', { user_added: msg });
} }
if (type === 'user-added-room-to-team') { if (type === 'user-added-room-to-team') {
return I18n.t('added__roomName__to_team', { roomName: msg }); return I18n.t('added__roomName__to_team', { roomName: msg });

File diff suppressed because one or more lines are too long