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);