diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-08 12:59:29 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-08 12:59:29 -0500 |
commit | 0d47dd0a0eb32e2364c68f706e6e9a463cb05953 (patch) | |
tree | 19badc7930ac714ecff72ca38c84e7bbdb4f67b9 /web/react/components | |
parent | 0fcb4252c8f873f5c28c08fc600368cf8d1fe6a8 (diff) | |
parent | a3e83abc14412d871b0befd3658e8ad48c92e786 (diff) | |
download | chat-0d47dd0a0eb32e2364c68f706e6e9a463cb05953.tar.gz chat-0d47dd0a0eb32e2364c68f706e6e9a463cb05953.tar.bz2 chat-0d47dd0a0eb32e2364c68f706e6e9a463cb05953.zip |
Merge pull request #2095 from mattermost/plt-1787
PLT-1787 Fix statuses not rendering until a change in the LHS
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/sidebar.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index 14790fbec..c7dba306b 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -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); |