about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/mutes
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/mutes
parente58af0428775d6e8f98ce86cbb626e0abf6fa78b (diff)
Clean up redundant shouldUpdateScroll definitions
Diffstat (limited to 'app/javascript/flavours/glitch/features/mutes')
-rw-r--r--app/javascript/flavours/glitch/features/mutes/index.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/javascript/flavours/glitch/features/mutes/index.js b/app/javascript/flavours/glitch/features/mutes/index.js
index 35c15deec..e5b5bb46d 100644
--- a/app/javascript/flavours/glitch/features/mutes/index.js
+++ b/app/javascript/flavours/glitch/features/mutes/index.js
@@ -41,11 +41,6 @@ export default class Mutes extends ImmutablePureComponent {
     this.props.dispatch(expandMutes());
   }, 300, { leading: true });
 
-  shouldUpdateScroll = (prevRouterProps, { location }) => {
-    if ((((prevRouterProps || {}).location || {}).state || {}).mastodonModalOpen) return false;
-    return !(location.state && location.state.mastodonModalOpen);
-  }
-
   render () {
     const { intl, accountIds, hasMore } = this.props;
 
@@ -66,7 +61,6 @@ export default class Mutes extends ImmutablePureComponent {
           scrollKey='mutes'
           onLoadMore={this.handleLoadMore}
           hasMore={hasMore}
-          shouldUpdateScroll={this.shouldUpdateScroll}
           emptyMessage={emptyMessage}
         >
           {accountIds.map(id =>