Skip to content

Commit

Permalink
remove componentWillUnmount from status
Browse files Browse the repository at this point in the history
  • Loading branch information
panarom committed Dec 28, 2019
1 parent c86b6ee commit 53c623a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/javascript/mastodon/components/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,6 @@ class Status extends ImmutablePureComponent {
}
}

componentWillUnmount() {
if (this.node && this.props.getScrollPosition) {
const position = this.props.getScrollPosition();
if (position !== null && this.node.offsetTop < position.top) {
requestAnimationFrame(() => {
this.props.updateScrollBottom(position.height - position.top);
});
}
}
}

handleToggleMediaVisibility = () => {
this.setState({ showMedia: !this.state.showMedia });
}
Expand Down

0 comments on commit 53c623a

Please sign in to comment.