diff options
author | Mika Andrianarijaona <mikaoelitiana@users.noreply.github.com> | 2017-02-26 18:13:07 +0300 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-02-26 12:13:07 -0300 |
commit | 04f4545bbd6c9a1f85071483e96e29684871d547 (patch) | |
tree | b9166f491c2200960fa7e196a83c5a5fd88cb079 /webapp/components/sidebar.jsx | |
parent | 97cc0a0d73dcacfefcdff785c802762e2a0a60d6 (diff) | |
download | chat-04f4545bbd6c9a1f85071483e96e29684871d547.tar.gz chat-04f4545bbd6c9a1f85071483e96e29684871d547.tar.bz2 chat-04f4545bbd6c9a1f85071483e96e29684871d547.zip |
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
Diffstat (limited to 'webapp/components/sidebar.jsx')
-rw-r--r-- | webapp/components/sidebar.jsx | 3 |
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(); } |