summaryrefslogtreecommitdiffstats
path: root/web/react/utils/async_client.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-07-08 22:40:28 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-07-08 22:40:28 +0500
commit235beeb82926abd79f032cecb5f7ddbb4ff72f8b (patch)
tree2a74b8dbfc9046d98064b3787e93b4624389464c /web/react/utils/async_client.jsx
parent689692b22db1f746d23b6ceb5f7892227c5efb1e (diff)
parentc721a3deace26222d96f3b6e1dcba9efba803997 (diff)
downloadchat-235beeb82926abd79f032cecb5f7ddbb4ff72f8b.tar.gz
chat-235beeb82926abd79f032cecb5f7ddbb4ff72f8b.tar.bz2
chat-235beeb82926abd79f032cecb5f7ddbb4ff72f8b.zip
Merge branch 'master' of https://github.com/asaadmahmoodspin/platform
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(