summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_select.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-04-04 20:07:51 -0400
committerenahum <nahumhbl@gmail.com>2017-04-04 21:07:51 -0300
commit5d6cf3ace5871aaa6b91abbc92bb90871be672bb (patch)
treed9d1e1e13e1cec01d11942ea48c4bdd3360e0692 /webapp/components/channel_select.jsx
parentf7a4c75a214fb239989618e9583d78f98256e66c (diff)
downloadchat-5d6cf3ace5871aaa6b91abbc92bb90871be672bb.tar.gz
chat-5d6cf3ace5871aaa6b91abbc92bb90871be672bb.tar.bz2
chat-5d6cf3ace5871aaa6b91abbc92bb90871be672bb.zip
Remove unnecessary uses of getMoreChannels (#5982)
Diffstat (limited to 'webapp/components/channel_select.jsx')
-rw-r--r--webapp/components/channel_select.jsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/webapp/components/channel_select.jsx b/webapp/components/channel_select.jsx
index ad0abd501..49c1edfef 100644
--- a/webapp/components/channel_select.jsx
+++ b/webapp/components/channel_select.jsx
@@ -7,7 +7,6 @@ import Constants from 'utils/constants.jsx';
import ChannelStore from 'stores/channel_store.jsx';
import * as Utils from 'utils/utils.jsx';
import {sortChannelsByDisplayName} from 'utils/channel_utils.jsx';
-import * as AsyncClient from 'utils/async_client.jsx';
export default class ChannelSelect extends React.Component {
static get propTypes() {
@@ -34,8 +33,6 @@ export default class ChannelSelect extends React.Component {
this.handleChannelChange = this.handleChannelChange.bind(this);
this.filterChannels = this.filterChannels.bind(this);
- AsyncClient.getMoreChannels(true);
-
this.state = {
channels: ChannelStore.getAll().filter(this.filterChannels).sort(sortChannelsByDisplayName)
};
@@ -51,7 +48,7 @@ export default class ChannelSelect extends React.Component {
handleChannelChange() {
this.setState({
- channels: ChannelStore.getAll().concat(ChannelStore.getMoreAll()).
+ channels: ChannelStore.getAll().
filter(this.filterChannels).sort(sortChannelsByDisplayName)
});
}