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
Этот коммит содержится в:
Mika Andrianarijaona
2017-02-26 18:13:07 +03:00
коммит произвёл enahum
родитель 97cc0a0d73
Коммит 04f4545bbd
2 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@@ -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();
}