From 6c7f6639838de78911656faab17b0befd7fc7bf8 Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 20 May 2022 16:25:31 -0400 Subject: [PATCH] Stop Jitsi if we time out while connecting to a video room (#22301) --- src/vector/jitsi/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts index d3eeb62d77f..fdf757b9530 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -156,6 +156,15 @@ const ack = (ev: CustomEvent) => widgetApi.transport.reply(ev ack(ev); }, ); + widgetApi.on(`action:${ElementWidgetActions.ForceHangupCall}`, + (ev: CustomEvent) => { + meetApi?.dispose(); + notifyHangup(); + meetApi = null; + closeConference(); + ack(ev); + }, + ); widgetApi.on(`action:${ElementWidgetActions.MuteAudio}`, async (ev: CustomEvent) => { ack(ev);