Fix RHS not closing when thread is deleted by another user (#3641)

Этот коммит содержится в:
Joram Wilander
2016-07-20 17:34:25 -04:00
коммит произвёл enahum
родитель 022cb7ffa1
Коммит d1de884845
2 изменённых файлов: 27 добавлений и 7 удалений

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

@@ -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() {