summaryrefslogtreecommitdiffstats
path: root/web/react/utils/async_client.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-09 13:44:28 -0700
committernickago <ngonella@calpoly.edu>2015-07-09 13:44:28 -0700
commit04b80b6a25cddce0a44da1409ddc430bc8e797f5 (patch)
tree90d57d50ec325e6b4f26608d4c3c20e1e21ce11e /web/react/utils/async_client.jsx
parent38532013fa7e9b152d3750d73c149ff727881342 (diff)
parent763618ef3613d0af6baea0e1d49abb6641979841 (diff)
downloadchat-04b80b6a25cddce0a44da1409ddc430bc8e797f5.tar.gz
chat-04b80b6a25cddce0a44da1409ddc430bc8e797f5.tar.bz2
chat-04b80b6a25cddce0a44da1409ddc430bc8e797f5.zip
Merge branch 'master' of https://github.com/mattermost/platform into MM-831
merge
Diffstat (limited to 'web/react/utils/async_client.jsx')
-rw-r--r--web/react/utils/async_client.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx
index 9383057c3..a2a6f8db7 100644
--- a/web/react/utils/async_client.jsx
+++ b/web/react/utils/async_client.jsx
@@ -104,7 +104,7 @@ module.exports.updateLastViewedAt = function() {
module.exports.getMoreChannels = function(force) {
if (isCallInProgress("getMoreChannels")) return;
- if (ChannelStore.getMoreAll().length == 0 || force) {
+ if (!ChannelStore.getMoreAll() || force) {
callTracker["getMoreChannels"] = utils.getTimestamp();
client.getMoreChannels(