summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_deleted_modal.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/components/post_deleted_modal.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/components/post_deleted_modal.jsx')
-rw-r--r--webapp/components/post_deleted_modal.jsx22
1 files changed, 0 insertions, 22 deletions
diff --git a/webapp/components/post_deleted_modal.jsx b/webapp/components/post_deleted_modal.jsx
index 85be61b2e..f70edf783 100644
--- a/webapp/components/post_deleted_modal.jsx
+++ b/webapp/components/post_deleted_modal.jsx
@@ -1,13 +1,8 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
-import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
-import Constants from 'utils/constants.jsx';
-
import {FormattedMessage} from 'react-intl';
-var ActionTypes = Constants.ActionTypes;
-
import {Modal} from 'react-bootstrap';
import React from 'react';
@@ -26,23 +21,6 @@ export default class PostDeletedModal extends React.Component {
handleHide(e) {
e.preventDefault();
- AppDispatcher.handleServerAction({
- type: ActionTypes.RECEIVED_SEARCH,
- results: null
- });
-
- AppDispatcher.handleServerAction({
- type: ActionTypes.RECEIVED_SEARCH_TERM,
- term: null,
- do_search: false,
- is_mention_search: false
- });
-
- AppDispatcher.handleServerAction({
- type: ActionTypes.RECEIVED_POST_SELECTED,
- postId: null
- });
-
this.props.onHide();
}