fix(chat): Adjust away message localization

This commit is contained in:
João Victor 2024-10-17 13:02:31 -03:00
parent 621c1ad0bf
commit 825951f963
2 changed files with 4 additions and 4 deletions

View File

@ -391,8 +391,8 @@ const ChatMesssage: React.FC<ChatMessageProps> = ({
case ChatMessageType.USER_AWAY_STATUS_MSG: {
const { away } = JSON.parse(message.messageMetadata);
const awayMessage = (away)
? intl.formatMessage(intlMessages.userAway, { user: message.senderName })
: intl.formatMessage(intlMessages.userNotAway, { user: message.senderName });
? `${message.senderName} ${intl.formatMessage(intlMessages.userAway)}`
: `${message.senderName} ${intl.formatMessage(intlMessages.userNotAway)}`;
return {
name: message.senderName,
color: '#0F70D7',

View File

@ -29,8 +29,8 @@
"app.chat.breakoutDurationUpdated": "Breakout time is now {0} minutes",
"app.chat.breakoutDurationUpdatedModerator": "Breakout rooms time is now {0} minutes, and a notification has been sent.",
"app.chat.emptyLogLabel": "Chat log empty",
"app.chat.away": "{user} is away",
"app.chat.notAway": "{user} is back online",
"app.chat.away": "is away",
"app.chat.notAway": "is back online",
"app.chat.clearPublicChatMessage": "The public chat history was cleared by a moderator",
"app.chat.multi.typing": "Multiple users are typing",
"app.chat.someone.typing": "Someone is typing",