diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-04-04 20:07:51 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-04-04 21:07:51 -0300 |
commit | 5d6cf3ace5871aaa6b91abbc92bb90871be672bb (patch) | |
tree | d9d1e1e13e1cec01d11942ea48c4bdd3360e0692 /webapp/utils/async_client.jsx | |
parent | f7a4c75a214fb239989618e9583d78f98256e66c (diff) | |
download | chat-5d6cf3ace5871aaa6b91abbc92bb90871be672bb.tar.gz chat-5d6cf3ace5871aaa6b91abbc92bb90871be672bb.tar.bz2 chat-5d6cf3ace5871aaa6b91abbc92bb90871be672bb.zip |
Remove unnecessary uses of getMoreChannels (#5982)
Diffstat (limited to 'webapp/utils/async_client.jsx')
-rw-r--r-- | webapp/utils/async_client.jsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index faaf3aee6..1879fed4a 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -208,30 +208,6 @@ export function viewChannel(channelId = ChannelStore.getCurrentId(), prevChannel ); } -export function getMoreChannels(force) { - if (isCallInProgress('getMoreChannels')) { - return; - } - - if (ChannelStore.getMoreAll().loading || force) { - callTracker.getMoreChannels = utils.getTimestamp(); - Client.getMoreChannels( - (data) => { - callTracker.getMoreChannels = 0; - - AppDispatcher.handleServerAction({ - type: ActionTypes.RECEIVED_MORE_CHANNELS, - channels: data - }); - }, - (err) => { - callTracker.getMoreChannels = 0; - dispatchError(err, 'getMoreChannels'); - } - ); - } -} - export function getMoreChannelsPage(offset, limit) { if (isCallInProgress('getMoreChannelsPage')) { return; |