(postId: string)
| 125 | }; |
| 126 | |
| 127 | export const openPostChatRoom = async (postId: string): Promise<ChatRoom> => { |
| 128 | const res = await gqlClient.request<{ openPostChatRoom: ChatRoom }>( |
| 129 | OPEN_POST_CHAT_ROOM_MUTATION, |
| 130 | { postId }, |
| 131 | ); |
| 132 | |
| 133 | return res.openPostChatRoom; |
| 134 | }; |
| 135 | |
| 136 | export const getChatRoom = async (id: string): Promise<ChatRoom | null> => { |
| 137 | const res = await gqlClient.request<{ chatRoom: ChatRoom | null }>( |