Update chat requests header (#10446)

This commit is contained in:
DS Boyce
2026-05-08 11:53:02 -07:00
committed by GitHub
parent 5640aed7e3
commit c8e4815837
7 changed files with 97 additions and 167 deletions
@@ -22,6 +22,7 @@ import {parseConvoView} from '#/components/dms/util'
import {useLeftConvos} from './leave-conversation'
const DEFAULT_LIMIT = 10
export const UNREAD_LIMIT = 20
export const RQKEY_ROOT = 'convo-list'
export const RQKEY = (
@@ -102,7 +103,10 @@ export function ListConvosProviderInner({
}: {
children: React.ReactNode
}) {
const {refetch, data} = useListConvosQuery({readState: 'unread', limit: 20})
const {refetch, data} = useListConvosQuery({
readState: 'unread',
limit: UNREAD_LIMIT,
})
const messagesBus = useMessagesEventBus()
const queryClient = useQueryClient()
const {currentConvoId} = useCurrentConvoId()