From 04f4545bbd6c9a1f85071483e96e29684871d547 Mon Sep 17 00:00:00 2001 From: Mika Andrianarijaona Date: Sun, 26 Feb 2017 18:13:07 +0300 Subject: PLT-5140: Display loading screen when switching team (#5475) * fix: clear channel list on team change * fix committed config * fix: no need to use anothe var * fix: better channel list clearing * remove unused function * fix: display loading screen when switching team * fix: display loading screen when switching team * fix: clear channel list on team change * fix committed config * fix: no need to use anothe var * fix: better channel list clearing * remove unused function * remove duplicate EnableUserTypingMessages --- webapp/components/sidebar.jsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webapp/components/sidebar.jsx') 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(); } -- cgit v1.2.3-1-g7c22