Clean up redundant shouldUpdateScroll definitions

This commit is contained in:
Thibaut Girka
2019-07-20 16:07:55 +02:00
committed by ThibG
parent e58af04287
commit 6db5669818
9 changed files with 0 additions and 46 deletions

View File

@@ -99,10 +99,6 @@ export default class PublicTimeline extends React.PureComponent {
dispatch(expandPublicTimeline({ maxId, onlyMedia }));
}
shouldUpdateScroll = (prevRouterProps, { location }) => {
return !(location.state && location.state.mastodonModalOpen)
}
render () {
const { intl, columnId, hasUnread, multiColumn, onlyMedia } = this.props;
const pinned = !!columnId;