mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-03 16:10:05 +00:00
Fix stuck persistence of Jitsi widgets (#21650)
The hangup event may or may not be handled, so we need to account for cases where it throws an error.
This commit is contained in:
@@ -361,7 +361,7 @@ function joinConference() { // event handler bound in HTML
|
||||
// can cause the receiving side to instantly stop listening.
|
||||
// ignored promise because we don't care if it works
|
||||
// noinspection JSIgnoredPromiseFromCall
|
||||
widgetApi.transport.send(ElementWidgetActions.HangupCall, {}).then(() =>
|
||||
widgetApi.transport.send(ElementWidgetActions.HangupCall, {}).finally(() =>
|
||||
widgetApi.setAlwaysOnScreen(false),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user