Merge branch 'pagination' into 'develop'

Fix conversation list pagination

See merge request soapbox-pub/soapbox!2316
environments/review-develop-3zknud/deployments/2716
Alex Gleason 2 years ago
commit aad7df89a5

@ -16,6 +16,7 @@ const ConversationsList: React.FC = () => {
const conversations = useAppSelector((state) => state.conversations.items);
const isLoading = useAppSelector((state) => state.conversations.isLoading);
const hasMore = useAppSelector((state) => state.conversations.hasMore);
const getCurrentIndex = (id: string) => conversations.findIndex(x => x.id === id);
@ -50,6 +51,7 @@ const ConversationsList: React.FC = () => {
return (
<ScrollableList
hasMore={hasMore}
onLoadMore={handleLoadOlder}
id='direct-list'
scrollKey='direct'

Loading…
Cancel
Save