PLT-3221 Remove async call to get posts when creating a comment and editing a post (#3300)
PLT-3203 Commenting on the RHS while in permalink view makes the message not show up in the RHS
Этот коммит содержится в:
@@ -137,7 +137,10 @@ export default class PostList extends React.Component {
|
||||
}
|
||||
|
||||
loadMorePostsTop() {
|
||||
GlobalActions.emitLoadMorePostsEvent();
|
||||
if (this.props.isFocusPost) {
|
||||
return GlobalActions.emitLoadMorePostsFocusedTopEvent();
|
||||
}
|
||||
return GlobalActions.emitLoadMorePostsEvent();
|
||||
}
|
||||
|
||||
loadMorePostsBottom() {
|
||||
@@ -522,5 +525,6 @@ PostList.propTypes = {
|
||||
displayNameType: React.PropTypes.string,
|
||||
displayPostsInCenter: React.PropTypes.bool,
|
||||
compactDisplay: React.PropTypes.bool,
|
||||
previewsCollapsed: React.PropTypes.string
|
||||
previewsCollapsed: React.PropTypes.string,
|
||||
isFocusPost: React.PropTypes.bool
|
||||
};
|
||||
|
||||
@@ -115,6 +115,7 @@ export default class PostFocusView extends React.Component {
|
||||
showMoreMessagesTop={!this.state.atTop}
|
||||
showMoreMessagesBottom={!this.state.atBottom}
|
||||
postsToHighlight={postsToHighlight}
|
||||
isFocusPost={true}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user