diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-08-27 13:14:56 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-08-27 13:14:56 -0400 |
commit | 0f06599763c5afbf2702674f162a34a771f2f5f8 (patch) | |
tree | a8e28d00850d9bf48fc285845b85c5d97debd1e4 | |
parent | bb0d95eff9c7ca0cb9d2aba876b946fbb4386b86 (diff) | |
parent | a6c7fe76a5f4a0153654cff5cae43e14d794e287 (diff) | |
download | chat-0f06599763c5afbf2702674f162a34a771f2f5f8.tar.gz chat-0f06599763c5afbf2702674f162a34a771f2f5f8.tar.bz2 chat-0f06599763c5afbf2702674f162a34a771f2f5f8.zip |
Merge pull request #495 from mattermost/minor-post-change
If we don't have any posts for a channel, pull page rather than pulling latest
-rw-r--r-- | web/react/utils/async_client.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |