@@ -49,6 +49,7 @@ import type {
|
||||
IsVercelProjectAvailableParams,
|
||||
SaveVercelAccessTokenParams,
|
||||
VercelProject,
|
||||
UpdateChatParams,
|
||||
} from "./ipc_types";
|
||||
import type { AppChatContext, ProposalResult } from "@/lib/schemas";
|
||||
import { showError } from "@/lib/toast";
|
||||
@@ -351,6 +352,10 @@ export class IpcClient {
|
||||
return this.ipcRenderer.invoke("create-chat", appId);
|
||||
}
|
||||
|
||||
public async updateChat(params: UpdateChatParams): Promise<void> {
|
||||
return this.ipcRenderer.invoke("update-chat", params);
|
||||
}
|
||||
|
||||
public async deleteChat(chatId: number): Promise<void> {
|
||||
await this.ipcRenderer.invoke("delete-chat", chatId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user