diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-03-31 12:47:04 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-03-31 12:47:04 -0400 |
commit | 720947e17e4e7820dcae6c5e25b5fe8485a7fc6c (patch) | |
tree | 8ca959e5014791aaaed94ca541d0b94c4511fcd2 /webapp/stores/post_store.jsx | |
parent | 7dee877c191022560c5eb93582e02370071285fe (diff) | |
parent | 098873e667126ad2e52bc6b61a1ad4e428c56ace (diff) | |
download | chat-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.jsx | 2 |
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; } |