@ -99,10 +99,6 @@ export default class CommunityTimeline extends React.PureComponent {
dispatch ( expandCommunityTimeline ( { maxId , onlyMedia } ) ) ;
dispatch ( expandCommunityTimeline ( { maxId , onlyMedia } ) ) ;
}
}
shouldUpdateScroll = ( prevRouterProps , { location } ) => {
return ! ( location . state && location . state . mastodonModalOpen )
}
render ( ) {
render ( ) {
const { intl , hasUnread , columnId , multiColumn , onlyMedia } = this . props ;
const { intl , hasUnread , columnId , multiColumn , onlyMedia } = this . props ;
const pinned = ! ! columnId ;
const pinned = ! ! columnId ;
@ -125,7 +121,6 @@ export default class CommunityTimeline extends React.PureComponent {
< StatusListContainer
< StatusListContainer
trackScroll = { ! pinned }
trackScroll = { ! pinned }
scrollKey = { ` community_timeline- ${ columnId } ` }
scrollKey = { ` community_timeline- ${ columnId } ` }
shouldUpdateScroll = { this . shouldUpdateScroll }
timelineId = { ` community ${ onlyMedia ? ':media' : '' } ` }
timelineId = { ` community ${ onlyMedia ? ':media' : '' } ` }
onLoadMore = { this . handleLoadMore }
onLoadMore = { this . handleLoadMore }
emptyMessage = { < FormattedMessage id = 'empty_column.community' defaultMessage = 'The local timeline is empty. Write something publicly to get the ball rolling!' / > }
emptyMessage = { < FormattedMessage id = 'empty_column.community' defaultMessage = 'The local timeline is empty. Write something publicly to get the ball rolling!' / > }