summaryrefslogtreecommitdiffstats
path: root/webapp/actions/websocket_actions.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-03-06 16:10:43 -0500
committerCorey Hulen <corey@hulen.com>2017-03-06 16:10:43 -0500
commit944e74feb87d9a0acbe66c0c08a74ad450ea79bd (patch)
tree42c2cfa007b9533fc2cd4c99abbb760ed8175566 /webapp/actions/websocket_actions.jsx
parenta87cb40993c9321c1faf6adf0c0f90ed017659a9 (diff)
downloadchat-944e74feb87d9a0acbe66c0c08a74ad450ea79bd.tar.gz
chat-944e74feb87d9a0acbe66c0c08a74ad450ea79bd.tar.bz2
chat-944e74feb87d9a0acbe66c0c08a74ad450ea79bd.zip
Prevented RHS from closing when you reply to a message that had been deleted. (#5651)
Diffstat (limited to 'webapp/actions/websocket_actions.jsx')
-rw-r--r--webapp/actions/websocket_actions.jsx5
1 files changed, 0 insertions, 5 deletions
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) {