fix(essentials): Add null check for CurrentRoom

This commit is contained in:
Neil Dorin
2021-08-12 13:51:48 -06:00
parent 7f6160eb44
commit 6e7bf061cf

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)
{ {
CallButtonSig.BoolValue = CurrentMode == UiDisplayMode.Call CallButtonSig.BoolValue = CurrentMode == UiDisplayMode.Call
&& CurrentRoom.ShutdownType == eShutdownType.None; && CurrentRoom.ShutdownType == eShutdownType.None;
@@ -632,6 +634,7 @@ namespace PepperDash.Essentials
&& CurrentRoom.ShutdownType == eShutdownType.None; && CurrentRoom.ShutdownType == eShutdownType.None;
EndMeetingButtonSig.BoolValue = CurrentRoom.ShutdownType != eShutdownType.None; EndMeetingButtonSig.BoolValue = CurrentRoom.ShutdownType != eShutdownType.None;
} }
}
/// <summary> /// <summary>
/// ///