Skip to content

Commit

Permalink
Add voice_chat_quit socket event
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenchristiansen committed Jun 7, 2024
1 parent 955669c commit 3caee02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ io.on('connection', (socket) => {
socket.on('voice_chat_ready', () => {
createTray(socket);
});
socket.on('voice_chat_quit', () => {
if (tray) tray.destroy();
});

socket.emit('platform', process.platform);
socket.on('get_electron_version', () => {
Expand Down

0 comments on commit 3caee02

Please sign in to comment.