Skip to content

Commit

Permalink
Fix blank DMs on page refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander committed Mar 1, 2017
1 parent 187bb31 commit 01cb32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/components/post_view/post_view_controller.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01cb32c

Please sign in to comment.