summaryrefslogtreecommitdiffstats
path: root/webapp/actions/global_actions.jsx
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/global_actions.jsx
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/global_actions.jsx')
-rw-r--r--webapp/actions/global_actions.jsx2
1 files changed, 1 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);
}