This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,11 @@ export default class VideoChannelStore extends AsyncStoreWithClient<null> {
190190 messaging . off ( `action:${ ElementWidgetActions . UnmuteVideo } ` , this . onUnmuteVideo ) ;
191191 messaging . off ( `action:${ ElementWidgetActions . HangupCall } ` , this . onHangup ) ;
192192
193+ if ( messaging . transport . ready ) {
194+ // The messaging still exists, which means Jitsi might still be going in the background
195+ messaging . transport . send ( ElementWidgetActions . ForceHangupCall , { } ) ;
196+ }
197+
193198 this . emit ( VideoChannelEvent . Disconnect , roomId ) ;
194199
195200 throw new Error ( `Failed to join call in room ${ roomId } : ${ e } ` ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export enum ElementWidgetActions {
2121 WidgetReady = "io.element.widget_ready" ,
2222 JoinCall = "io.element.join" ,
2323 HangupCall = "im.vector.hangup" ,
24+ ForceHangupCall = "io.element.force_hangup" ,
2425 CallParticipants = "io.element.participants" ,
2526 MuteAudio = "io.element.mute_audio" ,
2627 UnmuteAudio = "io.element.unmute_audio" ,
You can’t perform that action at this time.
0 commit comments