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
Этот коммит содержится в:
enahum
2016-06-09 15:28:57 -03:00
коммит произвёл Corey Hulen
родитель f1eefd99e6
Коммит 18c53e03eb
6 изменённых файлов: 33 добавлений и 26 удалений

Просмотреть файл

@@ -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}
/>
);
}