summaryrefslogtreecommitdiffstats
path: root/webapp/components/sidebar.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/sidebar.jsx')
-rw-r--r--webapp/components/sidebar.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx
index 048122897..c4c5f0517 100644
--- a/webapp/components/sidebar.jsx
+++ b/webapp/components/sidebar.jsx
@@ -187,6 +187,9 @@ export default class Sidebar extends React.Component {
}
onChange() {
+ if (this.state.currentTeam.id !== TeamStore.getCurrentId()) {
+ ChannelStore.clear();
+ }
this.setState(this.getStateFromStores());
this.updateTitle();
}