summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-16 18:32:08 -0500
committerCorey Hulen <corey@hulen.com>2017-01-16 18:32:08 -0500
commit4257114a372fbe2d55178ecef303e4a251288015 (patch)
tree1eca06d364c9fda59485128f957a2d92b257acf8 /webapp/actions
parentc0fde5f7e55e083dd132f3e4e96e7f8144289507 (diff)
downloadchat-4257114a372fbe2d55178ecef303e4a251288015.tar.gz
chat-4257114a372fbe2d55178ecef303e4a251288015.tar.bz2
chat-4257114a372fbe2d55178ecef303e4a251288015.zip
Fix lodaing missing messages after search bug (#5080)
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/global_actions.jsx2
-rw-r--r--webapp/actions/post_actions.jsx2
2 files changed, 3 insertions, 1 deletions
diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx
index ea077d6eb..4cfcaa6cb 100644
--- a/webapp/actions/global_actions.jsx
+++ b/webapp/actions/global_actions.jsx
@@ -256,7 +256,7 @@ export function emitLoadMorePostsFocusedTopEvent() {
}
export function loadMorePostsTop(id, isFocusPost) {
- const earliestPostId = PostStore.getEarliestPost(id).id;
+ const earliestPostId = PostStore.getEarliestPostFromPage(id).id;
if (PostStore.requestVisibilityIncrease(id, Constants.POST_CHUNK_SIZE)) {
loadPostsBefore(earliestPostId, 0, Constants.POST_CHUNK_SIZE, isFocusPost);
}
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx
index c7a8cf731..4d472db45 100644
--- a/webapp/actions/post_actions.jsx
+++ b/webapp/actions/post_actions.jsx
@@ -167,6 +167,7 @@ export function loadPostsPage(channelId = ChannelStore.getCurrentId(), max = Con
before: true,
numRequested: numPosts,
checkLatest: true,
+ checkEarliest: true,
post_list: data
});
@@ -195,6 +196,7 @@ export function loadPostsBefore(postId, offset, numPost, isPost) {
type: ActionTypes.RECEIVED_POSTS,
id: channelId,
before: true,
+ checkEarliest: true,
numRequested: numPost,
post_list: data,
isPost