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

Function getPostChatRoom

packages/shared/src/features/liveChat/graphql.ts:116–125  ·  view source on GitHub ↗
(
  postId: string,
)

Source from the content-addressed store, hash-verified

114`;
115
116export const getPostChatRoom = async (
117 postId: string,
118): Promise<ChatRoom | null> => {
119 const res = await gqlClient.request<{ postChatRoom: ChatRoom | null }>(
120 POST_CHAT_ROOM_QUERY,
121 { postId },
122 );
123
124 return res.postChatRoom;
125};
126
127export const openPostChatRoom = async (postId: string): Promise<ChatRoom> => {
128 const res = await gqlClient.request<{ openPostChatRoom: ChatRoom }>(

Callers 1

postChatRoomQueryOptionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected