@@ -540,6 +540,7 @@ MTComp = withMethodExposing(MTComp, [
540
540
params : [ ] ,
541
541
} ,
542
542
execute : async ( comp , values ) => {
543
+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
543
544
let sharing = ! comp . children . sharing . getView ( ) . value ;
544
545
await shareScreen ( sharing ) ;
545
546
comp . children . sharing . change ( sharing ) ;
@@ -552,6 +553,7 @@ MTComp = withMethodExposing(MTComp, [
552
553
params : [ ] ,
553
554
} ,
554
555
execute : async ( comp , values ) => {
556
+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
555
557
let value = ! comp . children . audioControl . getView ( ) . value ;
556
558
comp . children . localUser . change ( {
557
559
user : userId + "" ,
@@ -570,6 +572,7 @@ MTComp = withMethodExposing(MTComp, [
570
572
params : [ ] ,
571
573
} ,
572
574
execute : async ( comp , values ) => {
575
+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
573
576
let value = ! comp . children . videoControl . getView ( ) . value ;
574
577
if ( videoTrack ) {
575
578
videoTrack . setEnabled ( value ) ;
@@ -633,6 +636,7 @@ MTComp = withMethodExposing(MTComp, [
633
636
params : [ ] ,
634
637
} ,
635
638
execute : async ( comp , values ) => {
639
+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
636
640
let otherData =
637
641
values != undefined && values [ 1 ] !== undefined ? values [ 1 ] : "" ;
638
642
let toUsers : any =
@@ -684,6 +688,7 @@ MTComp = withMethodExposing(MTComp, [
684
688
params : [ ] ,
685
689
} ,
686
690
execute : async ( comp , values ) => {
691
+ if ( ! comp . children . meetingActive . getView ( ) . value ) return ;
687
692
let value = ! comp . children . endCall . getView ( ) . value ;
688
693
comp . children . endCall . change ( value ) ;
689
694
comp . children . meetingActive . change ( false ) ;
0 commit comments