diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-07-13 01:31:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 01:31:09 +0900 |
commit | b1322746d2ceb5b840b4ad0d3ffc770f6b73d83b (patch) | |
tree | 9eb89a5a8edc1a5cc4974c33cf2042e2a8f6dea6 /webapp/components/rhs_thread/index.js | |
parent | 6a056a0042d0df6c1c377d4bfeb6a3d10017ae3f (diff) | |
download | chat-b1322746d2ceb5b840b4ad0d3ffc770f6b73d83b.tar.gz chat-b1322746d2ceb5b840b4ad0d3ffc770f6b73d83b.tar.bz2 chat-b1322746d2ceb5b840b4ad0d3ffc770f6b73d83b.zip |
dismiss deleted message in RHS (#6914)
Diffstat (limited to 'webapp/components/rhs_thread/index.js')
-rw-r--r-- | webapp/components/rhs_thread/index.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/webapp/components/rhs_thread/index.js b/webapp/components/rhs_thread/index.js index c4465cafd..ed7618427 100644 --- a/webapp/components/rhs_thread/index.js +++ b/webapp/components/rhs_thread/index.js @@ -2,7 +2,9 @@ // See License.txt for license information. import {connect} from 'react-redux'; +import {bindActionCreators} from 'redux'; import {getPost, makeGetPostsForThread} from 'mattermost-redux/selectors/entities/posts'; +import {removePost} from 'mattermost-redux/actions/posts'; import RhsThread from './rhs_thread.jsx'; @@ -24,4 +26,12 @@ function makeMapStateToProps() { }; } -export default connect(makeMapStateToProps)(RhsThread); +function mapDispatchToProps(dispatch) { + return { + actions: bindActionCreators({ + removePost + }, dispatch) + }; +} + +export default connect(makeMapStateToProps, mapDispatchToProps)(RhsThread); |