@@ -540,6 +540,7 @@ MTComp = withMethodExposing(MTComp, [
540540 params : [ ] ,
541541 } ,
542542 execute : async ( comp , values ) => {
543+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
543544 let sharing = ! comp . children . sharing . getView ( ) . value ;
544545 await shareScreen ( sharing ) ;
545546 comp . children . sharing . change ( sharing ) ;
@@ -552,6 +553,7 @@ MTComp = withMethodExposing(MTComp, [
552553 params : [ ] ,
553554 } ,
554555 execute : async ( comp , values ) => {
556+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
555557 let value = ! comp . children . audioControl . getView ( ) . value ;
556558 comp . children . localUser . change ( {
557559 user : userId + "" ,
@@ -570,6 +572,7 @@ MTComp = withMethodExposing(MTComp, [
570572 params : [ ] ,
571573 } ,
572574 execute : async ( comp , values ) => {
575+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
573576 let value = ! comp . children . videoControl . getView ( ) . value ;
574577 if ( videoTrack ) {
575578 videoTrack . setEnabled ( value ) ;
@@ -633,6 +636,7 @@ MTComp = withMethodExposing(MTComp, [
633636 params : [ ] ,
634637 } ,
635638 execute : async ( comp , values ) => {
639+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
636640 let otherData =
637641 values != undefined && values [ 1 ] !== undefined ? values [ 1 ] : "" ;
638642 let toUsers : any =
@@ -684,6 +688,7 @@ MTComp = withMethodExposing(MTComp, [
684688 params : [ ] ,
685689 } ,
686690 execute : async ( comp , values ) => {
691+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
687692 let value = ! comp . children . endCall . getView ( ) . value ;
688693 comp . children . endCall . change ( value ) ;
689694 comp . children . meetingActive . change ( false ) ;
0 commit comments