[Glitch] Fix timeline unable to load more when the last item is a inline-follow-suggestions
Port cf41960f64 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
dfd18b34f0
commit
f6456e4943
2 files changed
+3
-3
No files matched your search
@@ -6,6 +6,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||
import { debounce } from 'lodash';
|
||||
|
||||
import { TIMELINE_GAP, TIMELINE_PINNED_VIEW_ALL, TIMELINE_SUGGESTIONS } from 'flavours/glitch/actions/timelines';
|
||||
import { isNonStatusId } from 'flavours/glitch/actions/timelines_typed';
|
||||
import { RegenerationIndicator } from 'flavours/glitch/components/regeneration_indicator';
|
||||
import { InlineFollowSuggestions } from 'flavours/glitch/features/home_timeline/components/inline_follow_suggestions';
|
||||
import { PinnedShowAllButton } from '@/flavours/glitch/features/account_timeline/components/pinned_statuses';
|
||||
@@ -46,7 +47,7 @@ export default class StatusList extends ImmutablePureComponent {
|
||||
|
||||
handleLoadOlder = debounce(() => {
|
||||
const { statusIds, lastId, onLoadMore } = this.props;
|
||||
onLoadMore(lastId || (statusIds.size > 0 ? statusIds.last() : undefined));
|
||||
onLoadMore(lastId || statusIds.findLast(id => !isNonStatusId(id)));
|
||||
}, 300, { leading: true });
|
||||
|
||||
setRef = c => {
|
||||
|
||||
Reference in new issue
Block a user