remove componentWillUnmount from status

This commit is contained in:
Matt Panaro 2019-12-23 09:19:22 -05:00
parent c86b6eedc2
commit 53c623a999
1 changed files with 0 additions and 11 deletions

View File

@ -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 });
}