this.props.dispatch(expandBlocks());
}, 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;
scrollKey='blocks'
onLoadMore={this.handleLoadMore}
hasMore={hasMore}
- shouldUpdateScroll={this.shouldUpdateScroll}
emptyMessage={emptyMessage}
>
{accountIds.map(id =>
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;
<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!' />}
}
}
- shouldUpdateScroll = (prevRouterProps, { location }) => {
- if ((((prevRouterProps || {}).location || {}).state || {}).mastodonModalOpen) return false;
- return !(location.state && location.state.mastodonModalOpen);
- }
-
handleHeaderClick = () => {
this.column.scrollTop();
}
/>
<ScrollableList
scrollKey='favourites'
- shouldUpdateScroll={this.shouldUpdateScroll}
emptyMessage={emptyMessage}
>
{accountIds.map(id =>
this.props.dispatch(expandFollowRequests());
}, 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;
scrollKey='follow_requests'
onLoadMore={this.handleLoadMore}
hasMore={hasMore}
- shouldUpdateScroll={this.shouldUpdateScroll}
emptyMessage={emptyMessage}
>
{accountIds.map(id =>
this.props.dispatch(expandFollowers(this.props.params.accountId));
}, 300, { leading: true });
- shouldUpdateScroll = (prevRouterProps, { location }) => {
- if ((((prevRouterProps || {}).location || {}).state || {}).mastodonModalOpen) return false;
- return !(location.state && location.state.mastodonModalOpen);
- }
-
setRef = c => {
this.column = c;
}
scrollKey='followers'
hasMore={hasMore}
onLoadMore={this.handleLoadMore}
- shouldUpdateScroll={this.shouldUpdateScroll}
prepend={<HeaderContainer accountId={this.props.params.accountId} hideTabs />}
alwaysPrepend
emptyMessage={emptyMessage}
scrollKey='following'
hasMore={hasMore}
onLoadMore={this.handleLoadMore}
- shouldUpdateScroll={this.shouldUpdateScroll}
prepend={<HeaderContainer accountId={this.props.params.accountId} hideTabs />}
alwaysPrepend
emptyMessage={emptyMessage}
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;
scrollKey='mutes'
onLoadMore={this.handleLoadMore}
hasMore={hasMore}
- shouldUpdateScroll={this.shouldUpdateScroll}
emptyMessage={emptyMessage}
>
{accountIds.map(id =>
dispatch(expandPublicTimeline({ maxId, onlyMedia }));
}
- shouldUpdateScroll = (prevRouterProps, { location }) => {
- return !(location.state && location.state.mastodonModalOpen)
- }
-
render () {
const { intl, columnId, hasUnread, multiColumn, onlyMedia } = this.props;
const pinned = !!columnId;
}
}
- shouldUpdateScroll = (prevRouterProps, { location }) => {
- if ((((prevRouterProps || {}).location || {}).state || {}).mastodonModalOpen) return false;
- return !(location.state && location.state.mastodonModalOpen);
- }
-
handleHeaderClick = () => {
this.column.scrollTop();
}
<ScrollableList
scrollKey='reblogs'
- shouldUpdateScroll={this.shouldUpdateScroll}
emptyMessage={emptyMessage}
>
{accountIds.map(id =>