correctlu display messages from missing users

This commit is contained in:
or-else
2018-11-24 18:23:29 +03:00
parent fbbab3e7d6
commit d1f7f02fa0
12 changed files with 34 additions and 13 deletions
+1
View File
@@ -70,6 +70,7 @@
"numeric_confirmation_code_prompt": "Numbers only",
"button_confirm": "Confirm",
"invalid_content": "invalid content",
"user_not_found": "Not found",
"badge_you": "you",
"badge_owner": "owner",
"menu_item_info": "Info",
+2 -1
View File
@@ -118,5 +118,6 @@
"button_create": "Создать",
"badge_you": "вы",
"badge_owner": "влад.",
"update_available": "Есть новая версия приложения. <a href=\"\">Обновить</a>."
"update_available": "Есть новая версия приложения. <a href=\"\">Обновить</a>.",
"user_not_found": "Не найден"
}
+3 -1
View File
@@ -71,6 +71,7 @@
"numeric_confirmation_code_prompt": "Numbers only",
"button_confirm": "Confirm",
"invalid_content": "invalid content",
"user_not_found": "Not found",
"badge_you": "you",
"badge_owner": "owner",
"menu_item_info": "Info",
@@ -241,6 +242,7 @@
"button_create": "Создать",
"badge_you": "вы",
"badge_owner": "влад.",
"update_available": "Есть новая версия приложения. <a href=\"\">Обновить</a>."
"update_available": "Есть новая версия приложения. <a href=\"\">Обновить</a>.",
"user_not_found": "Не найден"
}
}
+1 -1
View File
@@ -1,3 +1,3 @@
// This is a generated file. Don't edit.
export const PACKAGE_VERSION = "0.15.10-rc1";
export const PACKAGE_VERSION = "0.15.10-rc2";
+9 -1
View File
@@ -130,7 +130,15 @@ export default class ChatMessage extends React.Component {
</a>
</span>
</div>
{fullDisplay ? <div className="author">{this.props.userName}</div> : null}
{fullDisplay ?
<div className="author">
<FormattedMessage id="user_not_found" defaultMessage="Not found"
description="In place of a user's full name when the user is not found.">{
(notFound) => {return this.props.userName || <i>{notFound}</i>}
}</FormattedMessage>
</div>
: null
}
</div>
</li>
);