Removed streaming for group, group_collection, hashtag, link timelines

• Removed:
- streaming for group, group_collection, hashtag, link timelines
This commit is contained in:
mgabdev
2020-11-04 21:09:27 -06:00
parent 880dad7b5a
commit f2f3382677
7 changed files with 3 additions and 210 deletions

View File

@@ -7,7 +7,6 @@ import { List as ImmutableList } from 'immutable'
import { injectIntl, defineMessages } from 'react-intl'
import { me } from '../initial_state'
import getSortBy from '../utils/group_sort_by'
import { connectGroupStream } from '../actions/streaming'
import {
clearTimeline,
expandGroupTimeline,
@@ -46,10 +45,6 @@ class GroupTimeline extends ImmutablePureComponent {
this.props.onExpandGroupFeaturedTimeline(groupId)
this.props.onExpandGroupTimeline(groupId, { sortBy, onlyMedia })
if (!!me) {
this.disconnect = this.props.onConnectGroupStream(groupId)
}
}
}
@@ -67,13 +62,6 @@ class GroupTimeline extends ImmutablePureComponent {
}
}
componentWillUnmount() {
if (this.disconnect && !!me) {
this.disconnect()
this.disconnect = null
}
}
handleLoadMore = (maxId) => {
const {
groupId,
@@ -142,9 +130,6 @@ const mapStateToProps = (state, props) => ({
})
const mapDispatchToProps = (dispatch) => ({
onConnectGroupStream(groupId) {
dispatch(connectGroupStream(groupId))
},
onClearTimeline(timelineId) {
dispatch(clearTimeline(timelineId))
},
@@ -167,7 +152,6 @@ GroupTimeline.propTypes = {
]),
groupId: PropTypes.string,
intl: PropTypes.object.isRequired,
onConnectGroupStream: PropTypes.func.isRequired,
onClearTimeline: PropTypes.func.isRequired,
onExpandGroupTimeline: PropTypes.func.isRequired,
onExpandGroupFeaturedTimeline: PropTypes.func.isRequired,