Skip to content

Commit 53c623a

Browse files
committed
remove componentWillUnmount from status
1 parent c86b6ee commit 53c623a

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

app/javascript/mastodon/components/status.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,6 @@ class Status extends ImmutablePureComponent {
134134
}
135135
}
136136

137-
componentWillUnmount() {
138-
if (this.node && this.props.getScrollPosition) {
139-
const position = this.props.getScrollPosition();
140-
if (position !== null && this.node.offsetTop < position.top) {
141-
requestAnimationFrame(() => {
142-
this.props.updateScrollBottom(position.height - position.top);
143-
});
144-
}
145-
}
146-
}
147-
148137
handleToggleMediaVisibility = () => {
149138
this.setState({ showMedia: !this.state.showMedia });
150139
}

0 commit comments

Comments
 (0)