diff --git a/app/components/combined_system_message/combined_system_message.js b/app/components/combined_system_message/combined_system_message.js index 72d6e82b0..fd66ff9b7 100644 --- a/app/components/combined_system_message/combined_system_message.js +++ b/app/components/combined_system_message/combined_system_message.js @@ -241,12 +241,16 @@ export default class CombinedSystemMessage extends React.PureComponent { getUsernamesByIds = (userIds = []) => { const {currentUserId, currentUsername} = this.props; const allUsernames = this.getAllUsernames(); + + const {formatMessage} = this.context.intl; + const someone = formatMessage({id: t('channel_loader.someone'), defaultMessage: 'Someone'}); + const usernames = userIds. filter((userId) => { return userId !== currentUserId && userId !== currentUsername; }). map((userId) => { - return `@${allUsernames[userId]}`; + return allUsernames[userId] ? `@${allUsernames[userId]}` : someone; }).filter((username) => { return username && username !== ''; });