about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/standalone/public_timeline
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-20 20:13:22 +0100
committerGitHub <noreply@github.com>2019-03-20 20:13:22 +0100
commitbde9196b70299405ebe9b16500b7a3f65539b2c3 (patch)
tree4bec904a28c70b916d18055f8291f17c2e58e07b /app/javascript/flavours/glitch/features/standalone/public_timeline
parentb9a998f201913dd1c89ddcb0c4c9e181eb73bfcf (diff)
parent8b5b686f087f99d1a2b54e0760add8180d77fa7e (diff)
Merge pull request #964 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/features/standalone/public_timeline')
-rw-r--r--app/javascript/flavours/glitch/features/standalone/public_timeline/index.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/javascript/flavours/glitch/features/standalone/public_timeline/index.js b/app/javascript/flavours/glitch/features/standalone/public_timeline/index.js
index 5e2b3fc6d..5f8a369ff 100644
--- a/app/javascript/flavours/glitch/features/standalone/public_timeline/index.js
+++ b/app/javascript/flavours/glitch/features/standalone/public_timeline/index.js
@@ -3,7 +3,6 @@ import { connect } from 'react-redux';
 import PropTypes from 'prop-types';
 import ImmutablePropTypes from 'react-immutable-proptypes';
 import { expandPublicTimeline, expandCommunityTimeline } from 'flavours/glitch/actions/timelines';
-import { connectPublicStream, connectCommunityStream } from 'flavours/glitch/actions/streaming';
 import Masonry from 'react-masonry-infinite';
 import { List as ImmutableList, Map as ImmutableMap } from 'immutable';
 import DetailedStatusContainer from 'flavours/glitch/features/status/containers/detailed_status_container';
@@ -42,24 +41,12 @@ class PublicTimeline extends React.PureComponent {
     }
   }
 
-  componentWillUnmount () {
-    this._disconnect();
-  }
-
   _connect () {
     const { dispatch, local } = this.props;
 
     dispatch(local ? expandCommunityTimeline() : expandPublicTimeline());
-    this.disconnect = dispatch(local ? connectCommunityStream() : connectPublicStream());
   }
  
-  _disconnect () {
-    if (this.disconnect) {
-      this.disconnect();
-      this.disconnect = null;
-    }
-  }
-
   handleLoadMore = () => {
     const { dispatch, statusIds, local } = this.props;
     const maxId = statusIds.last();