Correctly pull threads when receiving a new post in a non-loaded thread (#6725)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a429430823
Коммит
d8cd38f483
@@ -65,7 +65,7 @@ export function handleNewPost(post, msg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function completePostReceive(post, websocketMessageProps) {
|
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(
|
getPostThread(post.root_id)(dispatch, getState).then(
|
||||||
(data) => {
|
(data) => {
|
||||||
// Need manual dispatch to remove pending post
|
// Need manual dispatch to remove pending post
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user