mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix some scrolling issues (#6851)
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -297,7 +297,6 @@ export default class PostList extends React.PureComponent {
|
||||
}
|
||||
|
||||
handleScroll = () => {
|
||||
this.hasScrolledToFocusedPost = true;
|
||||
this.hasScrolled = true;
|
||||
this.previousScrollTop = this.refs.postlist.scrollTop;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user