Fix conversation list pagination

This commit is contained in:
oakes 2023-02-28 15:23:02 -05:00
parent b7c1d7d44a
commit 1b00de14a6

View file

@ -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 === true);
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'