From 8134a2ad829f702a071343aea71c0b0f869480cb Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Fri, 20 May 2022 16:04:25 -0400 Subject: [PATCH] Stop Jitsi if we time out while connecting to a video room --- 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);