mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix: removed property sets as recommended in discussion; removed 'if' statements before property sets in leave and end call methods
This commit is contained in:
parent
4d6da37c60
commit
a09212417c
1 changed files with 7 additions and 9 deletions
|
|
@ -2583,7 +2583,6 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||
if (args.LoginAttemptCancelled)
|
||||
{
|
||||
trilist.SetBool(joinMap.MeetingPasswordRequired.JoinNumber, false);
|
||||
_meetingPasswordRequired = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -2595,7 +2594,6 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||
if (args.LoginAttemptFailed)
|
||||
{
|
||||
// login attempt failed
|
||||
_meetingPasswordRequired = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -2820,24 +2818,24 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
|
|||
|
||||
public void LeaveMeeting()
|
||||
{
|
||||
if (_meetingPasswordRequired) _meetingPasswordRequired = false;
|
||||
if (_waitingForUserToAcceptOrRejectIncomingCall) _waitingForUserToAcceptOrRejectIncomingCall = false;
|
||||
_meetingPasswordRequired = false;
|
||||
_waitingForUserToAcceptOrRejectIncomingCall = false;
|
||||
|
||||
SendText("zCommand Call Leave");
|
||||
}
|
||||
|
||||
public override void EndCall(CodecActiveCallItem call)
|
||||
{
|
||||
if (_meetingPasswordRequired) _meetingPasswordRequired = false;
|
||||
if (_waitingForUserToAcceptOrRejectIncomingCall) _waitingForUserToAcceptOrRejectIncomingCall = false;
|
||||
_meetingPasswordRequired = false;
|
||||
_waitingForUserToAcceptOrRejectIncomingCall = false;
|
||||
|
||||
SendText("zCommand Call Disconnect");
|
||||
}
|
||||
|
||||
public override void EndAllCalls()
|
||||
{
|
||||
if (_meetingPasswordRequired) _meetingPasswordRequired = false;
|
||||
if (_waitingForUserToAcceptOrRejectIncomingCall) _waitingForUserToAcceptOrRejectIncomingCall = false;
|
||||
_meetingPasswordRequired = false;
|
||||
_waitingForUserToAcceptOrRejectIncomingCall = false;
|
||||
|
||||
SendText("zCommand Call Disconnect");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue