summaryrefslogtreecommitdiffstats
path: root/webapp/stores/post_store.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-03-31 12:47:04 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-03-31 12:47:04 -0400
commit720947e17e4e7820dcae6c5e25b5fe8485a7fc6c (patch)
tree8ca959e5014791aaaed94ca541d0b94c4511fcd2 /webapp/stores/post_store.jsx
parent7dee877c191022560c5eb93582e02370071285fe (diff)
parent098873e667126ad2e52bc6b61a1ad4e428c56ace (diff)
downloadchat-720947e17e4e7820dcae6c5e25b5fe8485a7fc6c.tar.gz
chat-720947e17e4e7820dcae6c5e25b5fe8485a7fc6c.tar.bz2
chat-720947e17e4e7820dcae6c5e25b5fe8485a7fc6c.zip
Merge pull request #2595 from hmhealey/plt2480
PLT-2480 Fixed errors when joining a channel that doesn't exist yet
Diffstat (limited to 'webapp/stores/post_store.jsx')
-rw-r--r--webapp/stores/post_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx
index 36393f5cd..f328ca306 100644
--- a/webapp/stores/post_store.jsx
+++ b/webapp/stores/post_store.jsx
@@ -531,8 +531,8 @@ PostStore.dispatchToken = AppDispatcher.register((payload) => {
switch (action.type) {
case ActionTypes.RECEIVED_POSTS: {
const id = PostStore.currentFocusedPostId == null ? action.id : PostStore.currentFocusedPostId;
- PostStore.checkBounds(id, action.numRequested, makePostListNonNull(action.post_list), action.before);
PostStore.storePosts(id, makePostListNonNull(action.post_list));
+ PostStore.checkBounds(id, action.numRequested, makePostListNonNull(action.post_list), action.before);
PostStore.emitChange();
break;
}