Remove unnecessary uses of getMoreChannels (#5982)

Этот коммит содержится в:
Joram Wilander
2017-04-04 20:07:51 -04:00
коммит произвёл enahum
родитель f7a4c75a21
Коммит 5d6cf3ace5
4 изменённых файлов: 1 добавлений и 41 удалений

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

@@ -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;