summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-31 11:10:57 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-31 11:10:57 -0400
commit307c16df5f134f687a669f0efe0bf9bcb1c27437 (patch)
treed17de03b3a6f80a9be204965ff8685d2916f04ee /webapp/stores
parent803b58c2d41f74b852f6247472d415e1d7103108 (diff)
downloadchat-307c16df5f134f687a669f0efe0bf9bcb1c27437.tar.gz
chat-307c16df5f134f687a669f0efe0bf9bcb1c27437.tar.bz2
chat-307c16df5f134f687a669f0efe0bf9bcb1c27437.zip
Fixed errors when joining a channel that doesn't exist yet
Diffstat (limited to 'webapp/stores')
-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;
}