Fix lodaing missing messages after search bug (#5080)

Этот коммит содержится в:
Joram Wilander
2017-01-16 18:32:08 -05:00
коммит произвёл Corey Hulen
родитель c0fde5f7e5
Коммит 4257114a37
3 изменённых файлов: 20 добавлений и 18 удалений

Просмотреть файл

@@ -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);
}

Просмотреть файл

@@ -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