Leave call when signing out (#1992)

This commit is contained in:
Alexander Zinchuk 2022-08-09 13:21:25 +02:00
parent 2f95fdb244
commit 8e177b1eca

View File

@ -134,7 +134,10 @@ addActionHandler('saveSession', (global, actions, payload) => {
} }
}); });
addActionHandler('signOut', async (_global, _actions, payload) => { addActionHandler('signOut', async (_global, actions, payload) => {
if ('hangUp' in actions) actions.hangUp();
if ('leaveGroupCall' in actions) actions.leaveGroupCall();
try { try {
await unsubscribe(); await unsubscribe();
await callApi('destroy'); await callApi('destroy');