Skip to content

Commit

Permalink
Fix stuck persistence of Jitsi widgets (#21650)
Browse files Browse the repository at this point in the history
The hangup event may or may not be handled, so we need to account for
cases where it throws an error.
  • Loading branch information
robintown committed Apr 4, 2022
1 parent b1a60b2 commit b79133c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/jitsi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
Expand Down

0 comments on commit b79133c

Please sign in to comment.