mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Hang up any active calls when quitting
This commit is contained in:
@@ -1700,6 +1700,10 @@ app.on('before-quit', () => {
|
||||
});
|
||||
|
||||
windowState.markShouldQuit();
|
||||
|
||||
if (mainWindow) {
|
||||
mainWindow.webContents.send('quit');
|
||||
}
|
||||
});
|
||||
|
||||
// Quit when all windows are closed.
|
||||
|
||||
@@ -288,6 +288,12 @@ export class CallingClass {
|
||||
uxActions.setPresenting();
|
||||
});
|
||||
|
||||
ipcRenderer.on('quit', () => {
|
||||
for (const conversationId of Object.keys(this.callsByConversation)) {
|
||||
this.hangup(conversationId);
|
||||
}
|
||||
});
|
||||
|
||||
this.cleanExpiredGroupCallRingsAndLoop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user