fix(Essentials): moves code inside null check for CurrentRoom

This commit is contained in:
Neil Dorin
2021-08-12 14:53:41 -06:00
parent 4b4f1f3c3d
commit efa801137c

View File

@@ -625,6 +625,8 @@ namespace PepperDash.Essentials
/// Single point call for setting the feedbacks on the activity buttons /// Single point call for setting the feedbacks on the activity buttons
/// </summary> /// </summary>
void SetActivityFooterFeedbacks() void SetActivityFooterFeedbacks()
{
if (CurrentRoom != null)
{ {
var startMode = CurrentMode == UiDisplayMode.Start; var startMode = CurrentMode == UiDisplayMode.Start;
var presentationMode = CurrentMode == UiDisplayMode.Presentation; var presentationMode = CurrentMode == UiDisplayMode.Presentation;
@@ -633,14 +635,11 @@ namespace PepperDash.Essentials
TriList.SetBool(StartPageVisibleJoin, startMode ? true : false); TriList.SetBool(StartPageVisibleJoin, startMode ? true : false);
TriList.SetBool(UIBoolJoin.SourceStagingBarVisible, presentationMode ? true : false); TriList.SetBool(UIBoolJoin.SourceStagingBarVisible, presentationMode ? true : false);
if (CurrentRoom != null)
{
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;
} }
} }