* Release a chat owned by a specific window.
(chatId: string, electronId: number)
| 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). |
no test coverage detected