From b79133c6947b51233982e3d253cb869a1b3d078a Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 4 Apr 2022 07:32:12 -0400 Subject: [PATCH] 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. --- src/vector/jitsi/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts index 598d4f3e051..346c9dab0c2 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -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), ); }