MCPcopy Index your code
hub / github.com/21st-dev/1code / releaseChat

Method releaseChat

src/main/windows/window-manager.ts:170–174  ·  view source on GitHub ↗

* Release a chat owned by a specific window.

(chatId: string, electronId: number)

Source from the content-addressed store, hash-verified

168 * Release a chat owned by a specific window.
169 */
170 releaseChat(chatId: string, electronId: number): void {
171 if (this.chatOwnership.get(chatId) === electronId) {
172 this.chatOwnership.delete(chatId)
173 }
174 }
175
176 /**
177 * Release all chats owned by a window (called on window close).

Callers 2

AgentsSidebarFunction · 0.80
registerIpcHandlersFunction · 0.80

Calls 2

getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected