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

Function openTopicChatRoom

packages/shared/src/features/liveChat/graphql.ts:149–161  ·  view source on GitHub ↗
(input: {
  title: string;
  description?: string;
  // A test run: no go-live push.
  silent?: boolean;
})

Source from the content-addressed store, hash-verified

147export const TOPIC_CHAT_ROOM_DESCRIPTION_MAX_LENGTH = 280;
148
149export const openTopicChatRoom = async (input: {
150 title: string;
151 description?: string;
152 // A test run: no go-live push.
153 silent?: boolean;
154}): Promise<ChatRoom> => {
155 const res = await gqlClient.request<{ openTopicChatRoom: ChatRoom }>(
156 OPEN_TOPIC_CHAT_ROOM_MUTATION,
157 input,
158 );
159
160 return res.openTopicChatRoom;
161};
162
163export const getLiveChatRooms = async (first: number): Promise<ChatRoom[]> => {
164 const res = await gqlClient.request<{ liveChatRooms: ChatRoom[] }>(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected