* Update mattermost-redux * Tap on Deleted post to remove it * Improvements when rendering post additional content * Avoid unnecessary re-renders on the post list component * Avoid unnecessary re-renders on the channel post list component * Avoid unnecessary re-renders on the channel screen * Feedback review
19 lines
553 B
JavaScript
19 lines
553 B
JavaScript
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
import {bindActionCreators} from 'redux';
|
|
|
|
import {getOpenGraphMetadata} from 'mattermost-redux/actions/posts';
|
|
|
|
import PostAttachmentOpenGraph from './post_attachment_opengraph';
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
getOpenGraphMetadata
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(null, mapDispatchToProps)(PostAttachmentOpenGraph);
|