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

Method releaseAllChats

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

* Release all chats owned by a window (called on window close).

(electronId: number)

Source from the content-addressed store, hash-verified

177 * Release all chats owned by a window (called on window close).
178 */
179 releaseAllChats(electronId: number): void {
180 for (const [chatId, owner] of this.chatOwnership.entries()) {
181 if (owner === electronId) {
182 this.chatOwnership.delete(chatId)
183 }
184 }
185 }
186
187 /**
188 * Focus the window that owns a given chatId.

Callers 1

registerMethod · 0.95

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected