mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-13 11:44:54 +00:00
fix: add logic to prevent vacancy from triggering room off if room is in
a call
This commit is contained in:
@@ -745,6 +745,24 @@ namespace PepperDash.Essentials
|
||||
{
|
||||
//Implement this
|
||||
}
|
||||
|
||||
protected override bool AllowVacancyTimerToStart()
|
||||
{
|
||||
bool allowVideo = true;
|
||||
bool allowAudio = true;
|
||||
|
||||
if (VideoCodec != null)
|
||||
{
|
||||
allowVideo = !VideoCodec.IsInCall;
|
||||
}
|
||||
|
||||
if (AudioCodec != null)
|
||||
{
|
||||
allowAudio = !AudioCodec.IsInCall;
|
||||
}
|
||||
|
||||
return allowVideo && allowAudio;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Does what it says
|
||||
|
||||
Reference in New Issue
Block a user