about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/community_timeline
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-07-20 16:07:55 +0200
committerThibG <thib@sitedethib.com>2019-07-21 20:57:42 +0200
commit6db5669818cce459b9bb916665541b7b8f5d5155 (patch)
tree260a0d01599390ef8f9b3d23e14d3ce2b5471813 /app/javascript/flavours/glitch/features/community_timeline
parente58af0428775d6e8f98ce86cbb626e0abf6fa78b (diff)
Clean up redundant shouldUpdateScroll definitions
Diffstat (limited to 'app/javascript/flavours/glitch/features/community_timeline')
-rw-r--r--app/javascript/flavours/glitch/features/community_timeline/index.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/javascript/flavours/glitch/features/community_timeline/index.js b/app/javascript/flavours/glitch/features/community_timeline/index.js
index 2c0fbff36..24126e5bc 100644
--- a/app/javascript/flavours/glitch/features/community_timeline/index.js
+++ b/app/javascript/flavours/glitch/features/community_timeline/index.js
@@ -99,10 +99,6 @@ export default class CommunityTimeline extends React.PureComponent {
     dispatch(expandCommunityTimeline({ maxId, onlyMedia }));
   }
 
-  shouldUpdateScroll = (prevRouterProps, { location }) => {
-    return !(location.state && location.state.mastodonModalOpen)
-  }
-
   render () {
     const { intl, hasUnread, columnId, multiColumn, onlyMedia } = this.props;
     const pinned = !!columnId;
@@ -125,7 +121,6 @@ export default class CommunityTimeline extends React.PureComponent {
         <StatusListContainer
           trackScroll={!pinned}
           scrollKey={`community_timeline-${columnId}`}
-          shouldUpdateScroll={this.shouldUpdateScroll}
           timelineId={`community${onlyMedia ? ':media' : ''}`}
           onLoadMore={this.handleLoadMore}
           emptyMessage={<FormattedMessage id='empty_column.community' defaultMessage='The local timeline is empty. Write something publicly to get the ball rolling!' />}