From a6c7fe76a5f4a0153654cff5cae43e14d794e287 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 27 Aug 2015 12:56:15 -0400 Subject: If we don't have any posts for a channel, pull page rather than pulling latest. --- web/react/utils/async_client.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/react') diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx index 4b0b90dc7..c03a0230b 100644 --- a/web/react/utils/async_client.jsx +++ b/web/react/utils/async_client.jsx @@ -412,6 +412,11 @@ function getPosts(id) { return; } + if (PostStore.getCurrentPosts() == null) { + module.exports.getPostsPage(true, id, Constants.POST_CHUNK_SIZE); + return; + } + var latestUpdate = PostStore.getLatestUpdate(channelId); callTracker['getPosts_' + channelId] = utils.getTimestamp(); -- cgit v1.2.3-1-g7c22