summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-07-05 16:20:09 -0400
committerGitHub <noreply@github.com>2017-07-05 16:20:09 -0400
commitdd78a3f1fa416cc9b16bf8d4b80b5f9bb10c528a (patch)
tree21e53db607dba1aa0d44ac8d9b77297bed67577a /webapp/components/post_view
parent039271394ee3aed5b265c6c5c5e1f8d979478970 (diff)
downloadchat-dd78a3f1fa416cc9b16bf8d4b80b5f9bb10c528a.tar.gz
chat-dd78a3f1fa416cc9b16bf8d4b80b5f9bb10c528a.tar.bz2
chat-dd78a3f1fa416cc9b16bf8d4b80b5f9bb10c528a.zip
Fix some scrolling issues (#6851)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/post_body/post_body.jsx2
-rw-r--r--webapp/components/post_view/post_body_additional_content.jsx2
-rw-r--r--webapp/components/post_view/post_list.jsx1
3 files changed, 2 insertions, 3 deletions
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 (
<PostAttachmentOpenGraph
link={link}
diff --git a/webapp/components/post_view/post_list.jsx b/webapp/components/post_view/post_list.jsx
index ee0fcb99b..a0aed8152 100644
--- a/webapp/components/post_view/post_list.jsx
+++ b/webapp/components/post_view/post_list.jsx
@@ -297,7 +297,6 @@ export default class PostList extends React.PureComponent {
}
handleScroll = () => {
- this.hasScrolledToFocusedPost = true;
this.hasScrolled = true;
this.previousScrollTop = this.refs.postlist.scrollTop;