Fix RHS not closing when thread is deleted by another user (#3641)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
022cb7ffa1
Коммит
d1de884845
@@ -159,6 +159,11 @@ function handlePostEditEvent(msg) {
|
||||
function handlePostDeleteEvent(msg) {
|
||||
const post = JSON.parse(msg.data.post);
|
||||
GlobalActions.emitPostDeletedEvent(post);
|
||||
|
||||
const selectedPostId = PostStore.getSelectedPostId();
|
||||
if (selectedPostId === post.id) {
|
||||
GlobalActions.emitCloseRightHandSide();
|
||||
}
|
||||
}
|
||||
|
||||
function handleNewUserEvent() {
|
||||
|
||||
Ссылка в новой задаче
Block a user