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