mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix(Essentials): moves code inside null check for CurrentRoom
This commit is contained in:
parent
4b4f1f3c3d
commit
efa801137c
1 changed files with 7 additions and 8 deletions
|
|
@ -626,21 +626,20 @@ namespace PepperDash.Essentials
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void SetActivityFooterFeedbacks()
|
void SetActivityFooterFeedbacks()
|
||||||
{
|
{
|
||||||
var startMode = CurrentMode == UiDisplayMode.Start;
|
|
||||||
var presentationMode = CurrentMode == UiDisplayMode.Presentation;
|
|
||||||
var callMode = CurrentMode == UiDisplayMode.Call;
|
|
||||||
|
|
||||||
TriList.SetBool(StartPageVisibleJoin, startMode ? true : false);
|
|
||||||
TriList.SetBool(UIBoolJoin.SourceStagingBarVisible, presentationMode ? true : false);
|
|
||||||
|
|
||||||
if (CurrentRoom != null)
|
if (CurrentRoom != null)
|
||||||
{
|
{
|
||||||
|
var startMode = CurrentMode == UiDisplayMode.Start;
|
||||||
|
var presentationMode = CurrentMode == UiDisplayMode.Presentation;
|
||||||
|
var callMode = CurrentMode == UiDisplayMode.Call;
|
||||||
|
|
||||||
|
TriList.SetBool(StartPageVisibleJoin, startMode ? true : false);
|
||||||
|
TriList.SetBool(UIBoolJoin.SourceStagingBarVisible, presentationMode ? true : false);
|
||||||
|
|
||||||
CallButtonSig.BoolValue = startMode
|
CallButtonSig.BoolValue = startMode
|
||||||
&& CurrentRoom.ShutdownType == eShutdownType.None;
|
&& CurrentRoom.ShutdownType == eShutdownType.None;
|
||||||
ShareButtonSig.BoolValue = presentationMode
|
ShareButtonSig.BoolValue = presentationMode
|
||||||
&& CurrentRoom.ShutdownType == eShutdownType.None;
|
&& CurrentRoom.ShutdownType == eShutdownType.None;
|
||||||
EndMeetingButtonSig.BoolValue = CurrentRoom.ShutdownType != eShutdownType.None;
|
EndMeetingButtonSig.BoolValue = CurrentRoom.ShutdownType != eShutdownType.None;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue