summaryrefslogtreecommitdiffstats
path: root/webapp/stores/post_store.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-06-07 18:43:36 -0300
committerJoram Wilander <jwawilander@gmail.com>2016-06-07 17:43:36 -0400
commit3a6694cc6b52ba0022a92373df9f07b7bf080240 (patch)
tree88a5dbeab00fbd64bd16d732a039d074735b069c /webapp/stores/post_store.jsx
parentbde432645882c2c328fd3821c8dbcd968677a13a (diff)
downloadchat-3a6694cc6b52ba0022a92373df9f07b7bf080240.tar.gz
chat-3a6694cc6b52ba0022a92373df9f07b7bf080240.tar.bz2
chat-3a6694cc6b52ba0022a92373df9f07b7bf080240.zip
PLT-3203 Commenting on the RHS while in permalink view makes the message not show up in the RHS (#3282)
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 062997f2b..b5e73b6b4 100644
--- a/webapp/stores/post_store.jsx
+++ b/webapp/stores/post_store.jsx
@@ -551,7 +551,7 @@ PostStore.dispatchToken = AppDispatcher.register((payload) => {
switch (action.type) {
case ActionTypes.RECEIVED_POSTS: {
- const id = PostStore.currentFocusedPostId == null ? action.id : PostStore.currentFocusedPostId;
+ const id = PostStore.currentFocusedPostId !== null && action.isPost ? PostStore.currentFocusedPostId : action.id;
PostStore.storePosts(id, makePostListNonNull(action.post_list));
PostStore.checkBounds(id, action.numRequested, makePostListNonNull(action.post_list), action.before);
PostStore.emitChange();