mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Removing useless resize alert function in PostBody
This commit is contained in:
@@ -204,7 +204,6 @@ export default class Post extends React.Component {
|
||||
posts={posts}
|
||||
handleCommentClick={this.handleCommentClick}
|
||||
retryPost={this.retryPost}
|
||||
resize={this.props.resize}
|
||||
/>
|
||||
<PostInfo
|
||||
ref='info'
|
||||
@@ -228,6 +227,5 @@ Post.propTypes = {
|
||||
sameUser: React.PropTypes.bool,
|
||||
sameRoot: React.PropTypes.bool,
|
||||
hideProfilePic: React.PropTypes.bool,
|
||||
isLastComment: React.PropTypes.bool,
|
||||
resize: React.PropTypes.func
|
||||
isLastComment: React.PropTypes.bool
|
||||
};
|
||||
|
||||
@@ -50,7 +50,6 @@ export default class PostBody extends React.Component {
|
||||
|
||||
componentDidUpdate() {
|
||||
this.parseEmojis();
|
||||
this.props.resize();
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
@@ -338,6 +337,5 @@ PostBody.propTypes = {
|
||||
post: React.PropTypes.object.isRequired,
|
||||
parentPost: React.PropTypes.object,
|
||||
retryPost: React.PropTypes.func.isRequired,
|
||||
handleCommentClick: React.PropTypes.func.isRequired,
|
||||
resize: React.PropTypes.func.isRequired
|
||||
handleCommentClick: React.PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
@@ -12,7 +12,6 @@ export default class PostsView extends React.Component {
|
||||
this.handleScroll = this.handleScroll.bind(this);
|
||||
this.isAtBottom = this.isAtBottom.bind(this);
|
||||
this.loadMorePostsTop = this.loadMorePostsTop.bind(this);
|
||||
this.postsRerendered = this.postsRerendered.bind(this);
|
||||
this.createPosts = this.createPosts.bind(this);
|
||||
this.updateScrolling = this.updateScrolling.bind(this);
|
||||
this.handleResize = this.handleResize.bind(this);
|
||||
@@ -53,8 +52,6 @@ export default class PostsView extends React.Component {
|
||||
loadMorePostsTop() {
|
||||
this.props.loadMorePostsTopClicked();
|
||||
}
|
||||
postsRerendered() {
|
||||
}
|
||||
createPosts(posts, order) {
|
||||
const postCtls = [];
|
||||
let previousPostDay = new Date(0);
|
||||
@@ -111,7 +108,6 @@ export default class PostsView extends React.Component {
|
||||
posts={posts}
|
||||
hideProfilePic={hideProfilePic}
|
||||
isLastComment={isLastComment}
|
||||
resize={this.postsRerendered}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user