diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index 864f238a..bf07d5ed 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -1048,6 +1048,10 @@ export const updateThread = async (threadId: string, data: Partial): Pro return updatedThread; }; +export const toggleThreadPublicStatus = async (threadId: string, isPublic: boolean): Promise => { + return updateThread(threadId, { is_public: isPublic }); +}; + // Function to get public projects export const getPublicProjects = async (): Promise => { try {