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

Function dmRequestsQueryOptions

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

Source from the content-addressed store, hash-verified

456// Requests live in the API, not the chat server, so the mock has the real ones
457// too.
458export const dmRequestsQueryOptions = (user: QueryUser) =>
459 queryOptions<DirectMessageConversation[]>({
460 queryKey: dmRequestsQueryKey(user),
461 queryFn: getDirectMessageRequests,
462 staleTime: StaleTime.Default,
463 enabled: !!user?.id,
464 });
465
466// The pair's row in the API, which carries the request state and the intro
467// note; the chat archive has neither.

Callers 1

RequestListFunction · 0.90

Calls 1

dmRequestsQueryKeyFunction · 0.85

Tested by

no test coverage detected