Merge pull request #1197 from rgarmsen2295/plt-166

PLT-166 Fixed issue with missing help text for @all and @channel in mention list
Этот коммит содержится в:
Christopher Speller
2015-10-27 08:49:38 -04:00
родитель e92af0daa2 ae3e600c7d
Коммит 3ca8a11a43

Просмотреть файл

@@ -217,12 +217,17 @@ export default class MentionList extends React.Component {
if (this.state.selectedMention === index) {
isFocused = 'mentions-focus';
}
if (!users[i].secondary_text) {
users[i].secondary_text = Utils.getFullName(users[i]);
}
mentions[index] = (
<Mention
key={'mention_key_' + index}
ref={'mention' + index}
username={users[i].username}
secondary_text={Utils.getFullName(users[i])}
secondary_text={users[i].secondary_text}
id={users[i].id}
listId={index}
isFocused={isFocused}