Merge pull request #2095 from mattermost/plt-1787

PLT-1787 Fix statuses not rendering until a change in the LHS
Этот коммит содержится в:
Christopher Speller
2016-02-08 12:59:29 -05:00
родитель 0fcb4252c8 a3e83abc14
Коммит 0d47dd0a0e
2 изменённых файлов: 8 добавлений и 6 удалений

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

@@ -96,7 +96,7 @@ export default class Sidebar extends React.Component {
let directChannel = channels.find(Utils.isDirectChannelForUser.bind(null, teammateId));
// a direct channel doesn't exist yet so create a fake one
if (!directChannel) {
if (directChannel == null) {
directChannel = {
name: Utils.getDirectChannelName(currentUserId, teammateId),
last_post_at: 0,
@@ -104,6 +104,8 @@ export default class Sidebar extends React.Component {
type: Constants.DM_CHANNEL,
fake: true
};
} else {
directChannel = JSON.parse(JSON.stringify(directChannel));
}
directChannel.display_name = Utils.displayUsername(teammateId);