summaryrefslogtreecommitdiffstats
path: root/webapp/utils/async_client.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/utils/async_client.jsx
parentf7a4c75a214fb239989618e9583d78f98256e66c (diff)
downloadchat-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.jsx24
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;