diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-02 09:10:53 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-03-02 09:10:53 -0500 |
commit | d94539340397d1e0478676ad3f8c40215783880a (patch) | |
tree | 26f6315ceda0ae2a9e19329effba77e3440bd9bc /webapp/components/post_view | |
parent | 1bd3917e3e6ace6d7f0bb45723a158a011e5c71a (diff) | |
download | chat-d94539340397d1e0478676ad3f8c40215783880a.tar.gz chat-d94539340397d1e0478676ad3f8c40215783880a.tar.bz2 chat-d94539340397d1e0478676ad3f8c40215783880a.zip |
Fix blank DMs on page refresh (#5593)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/post_view_controller.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_view_controller.jsx b/webapp/components/post_view/post_view_controller.jsx index 7650b1581..220fe6b67 100644 --- a/webapp/components/post_view/post_view_controller.jsx +++ b/webapp/components/post_view/post_view_controller.jsx @@ -136,7 +136,7 @@ export default class PostViewController extends React.Component { onTeamChange() { const currentTeamId = TeamStore.getCurrentId(); - if (this.state.channel.team_id !== currentTeamId) { + if ((this.state.channel.type === Constants.OPEN_CHANNEL || this.state.channel.type === Constants.PRIVATE_CHANNEL) && this.state.channel.team_id !== currentTeamId) { this.setState({ currentTeamId, loading: true |