Correctly pull threads when receiving a new post in a non-loaded thread (#6725)

Этот коммит содержится в:
Joram Wilander
2017-06-22 15:51:15 -04:00
коммит произвёл GitHub
родитель a429430823
Коммит d8cd38f483

Просмотреть файл

@@ -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