Increase performance when receiving messages (#5375)

Этот коммит содержится в:
Joram Wilander
2017-02-13 09:27:28 -05:00
коммит произвёл Corey Hulen
родитель fac85b676e
Коммит ff741740ee
14 изменённых файлов: 106 добавлений и 64 удалений

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

@@ -33,7 +33,7 @@ export default class PostViewCache extends React.Component {
componentWillUnmount() {
if (UserStore.getCurrentUser()) {
AsyncClient.viewChannel('');
AsyncClient.viewChannel('', this.state.currentChannelId || '');
}
ChannelStore.removeChangeListener(this.onChannelChange);
}