From dd78a3f1fa416cc9b16bf8d4b80b5f9bb10c528a Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 5 Jul 2017 16:20:09 -0400 Subject: Fix some scrolling issues (#6851) --- webapp/components/post_view/post_body/post_body.jsx | 2 +- webapp/components/post_view/post_body_additional_content.jsx | 2 +- webapp/components/post_view/post_list.jsx | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/post_view/post_body/post_body.jsx b/webapp/components/post_view/post_body/post_body.jsx index 044b46c55..4c0e00c47 100644 --- a/webapp/components/post_view/post_body/post_body.jsx +++ b/webapp/components/post_view/post_body/post_body.jsx @@ -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 = ''; diff --git a/webapp/components/post_view/post_body_additional_content.jsx b/webapp/components/post_view/post_body_additional_content.jsx index bf8380912..107c75778 100644 --- a/webapp/components/post_view/post_body_additional_content.jsx +++ b/webapp/components/post_view/post_body_additional_content.jsx @@ -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 ( { - this.hasScrolledToFocusedPost = true; this.hasScrolled = true; this.previousScrollTop = this.refs.postlist.scrollTop; -- cgit v1.2.3-1-g7c22