From d94539340397d1e0478676ad3f8c40215783880a Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 2 Mar 2017 09:10:53 -0500 Subject: Fix blank DMs on page refresh (#5593) --- webapp/components/post_view/post_view_controller.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22