Leave call when signing out (#1992)
This commit is contained in:
parent
2f95fdb244
commit
8e177b1eca
@ -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 {
|
||||
await unsubscribe();
|
||||
await callApi('destroy');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user