(user: QueryUser)
| 456 | // Requests live in the API, not the chat server, so the mock has the real ones |
| 457 | // too. |
| 458 | export 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. |
no test coverage detected