MCPcopy Create free account
hub / github.com/dailydotdev/apps / dmRequestsQueryOptions

Function dmRequestsQueryOptions

packages/shared/src/features/messages/queries.ts:433–439  ·  view source on GitHub ↗
(user: QueryUser)

Source from the content-addressed store, hash-verified

431// Requests live in the API, not the chat server, so the mock has the real ones
432// too.
433export const dmRequestsQueryOptions = (user: QueryUser) =>
434 queryOptions<DirectMessageConversation[]>({
435 queryKey: dmRequestsQueryKey(user),
436 queryFn: getDirectMessageRequests,
437 staleTime: StaleTime.Default,
438 enabled: !!user?.id,
439 });
440
441// The pair's row in the API, which carries the request state and the intro
442// note; the chat archive has neither.

Callers 1

RequestListFunction · 0.90

Calls 1

dmRequestsQueryKeyFunction · 0.85

Tested by

no test coverage detected