From 944e74feb87d9a0acbe66c0c08a74ad450ea79bd Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 6 Mar 2017 16:10:43 -0500
Subject: Prevented RHS from closing when you reply to a message that had been
 deleted. (#5651)

---
 webapp/actions/websocket_actions.jsx | 5 -----
 1 file changed, 5 deletions(-)

(limited to 'webapp/actions/websocket_actions.jsx')

diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index b442b9083..913a89221 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -212,11 +212,6 @@ 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 handleLeaveTeamEvent(msg) {
-- 
cgit v1.2.3-1-g7c22

