mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
fix(Essentials): moves code inside null check for CurrentRoom
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user