summaryrefslogtreecommitdiffstats
path: root/web/react/utils/async_client.jsx
diff options
context:
space:
mode:
authorasaadmahmoodspin <asaad@battlehouse.com>2015-07-08 22:39:44 +0500
committerasaadmahmoodspin <asaad@battlehouse.com>2015-07-08 22:39:44 +0500
commitc721a3deace26222d96f3b6e1dcba9efba803997 (patch)
treeb82294d6327f5eecfd921568c92f511eafeb68c4 /web/react/utils/async_client.jsx
parent37fbd62a7c47261f1d922844faaa2c96cce5f0d6 (diff)
parentff4b94f02b038bf754ba3fcb00b7dd2a421a2d71 (diff)
downloadchat-c721a3deace26222d96f3b6e1dcba9efba803997.tar.gz
chat-c721a3deace26222d96f3b6e1dcba9efba803997.tar.bz2
chat-c721a3deace26222d96f3b6e1dcba9efba803997.zip
Merge pull request #1 from rgarmsen2295/mm-1469
MM-1469 Added loading animation logic to the "Get More Channels Menu" ("More...")
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(