diff --git a/app/soapbox/queries/chats.ts b/app/soapbox/queries/chats.ts index 3cfeeeda2..96ad97ce8 100644 --- a/app/soapbox/queries/chats.ts +++ b/app/soapbox/queries/chats.ts @@ -169,7 +169,10 @@ const useChats = (search?: string) => { }, }); - const data = flattenPages(queryInfo.data); + const data = queryInfo.data?.pages.reduce( + (prev: IChat[], curr) => [...prev, ...curr.result], + [], + ); const chatsQuery = { ...queryInfo,