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.
pull/21665/head
Robin 2022-04-04 07:32:12 -04:00 committed by GitHub
parent b1a60b25b4
commit b79133c694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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),
);
}