summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-06-22 15:51:15 -0400
committerGitHub <noreply@github.com>2017-06-22 15:51:15 -0400
commitd8cd38f4831ea2cd6a42e1d8aa68c0b24c3a4bd1 (patch)
tree95d4993ee16a7edb91d0c2c260b36bb3d8a60bf7 /webapp
parenta42943082336155a5d7f14c11b01003ddf4af58d (diff)
downloadchat-d8cd38f4831ea2cd6a42e1d8aa68c0b24c3a4bd1.tar.gz
chat-d8cd38f4831ea2cd6a42e1d8aa68c0b24c3a4bd1.tar.bz2
chat-d8cd38f4831ea2cd6a42e1d8aa68c0b24c3a4bd1.zip
Correctly pull threads when receiving a new post in a non-loaded thread (#6725)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/post_actions.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/post_actions.jsx b/webapp/actions/post_actions.jsx
index 81935f615..be7234c13 100644
--- a/webapp/actions/post_actions.jsx
+++ b/webapp/actions/post_actions.jsx
@@ -65,7 +65,7 @@ export function handleNewPost(post, msg) {
}
function completePostReceive(post, websocketMessageProps) {
- if (post.root_id && Selectors.getPost(getState(), post.root_id) != null) {
+ if (post.root_id && Selectors.getPost(getState(), post.root_id) == null) {
getPostThread(post.root_id)(dispatch, getState).then(
(data) => {
// Need manual dispatch to remove pending post