Browse Source

Stop Jitsi if we time out while connecting to a video room (#22301)

pull/22321/head
Robin 1 month ago committed by GitHub
parent
commit
6c7f663983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/vector/jitsi/index.ts

9
src/vector/jitsi/index.ts

@ -156,6 +156,15 @@ const ack = (ev: CustomEvent<IWidgetApiRequest>) => widgetApi.transport.reply(ev
ack(ev);
},
);
widgetApi.on(`action:${ElementWidgetActions.ForceHangupCall}`,
(ev: CustomEvent<IWidgetApiRequest>) => {
meetApi?.dispose();
notifyHangup();
meetApi = null;
closeConference();
ack(ev);
},
);
widgetApi.on(`action:${ElementWidgetActions.MuteAudio}`,
async (ev: CustomEvent<IWidgetApiRequest>) => {
ack(ev);

Loading…
Cancel
Save