shellphone.app/app/messages/hooks/use-known-recipients.ts

15 lines
283 B
TypeScript
Raw Normal View History

2021-08-01 07:40:18 +00:00
import { useQuery } from "blitz";
import getConversationsQuery from "../queries/get-conversations";
export default function useKnownRecipients() {
return useQuery(
getConversationsQuery,
{},
{
select(conversations) {
return Object.keys(conversations);
},
}
);
}