Fix some scrolling issues (#6851)

This commit is contained in:
Joram Wilander
2017-07-05 16:20:09 -04:00
committed by GitHub
parent 039271394e
commit dd78a3f1fa
3 changed files with 2 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ export default class PostBody extends React.PureComponent {
let comment = '';
let postClass = '';
if (parentPost && this.props.parentPostUser) {
if (parentPost) {
const profile = this.props.parentPostUser;
let apostrophe = '';

View File

@@ -153,7 +153,7 @@ export default class PostBodyAdditionalContent extends React.PureComponent {
}
const link = Utils.extractFirstLink(this.props.post.message);
if (link && Utils.isFeatureEnabled(Constants.PRE_RELEASE_FEATURES.EMBED_PREVIEW)) {
if (link && Utils.isFeatureEnabled(Constants.PRE_RELEASE_FEATURES.EMBED_PREVIEW) && global.window.mm_config.EnableLinkPreviews === 'true') {
return (
<PostAttachmentOpenGraph
link={link}

View File

@@ -297,7 +297,6 @@ export default class PostList extends React.PureComponent {
}
handleScroll = () => {
this.hasScrolledToFocusedPost = true;
this.hasScrolled = true;
this.previousScrollTop = this.refs.postlist.scrollTop;