Fix areAnyCallsUnsilenced()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
e4f8971c67
commit
f54c6d75ac
1 changed files with 9 additions and 1 deletions
|
@ -250,7 +250,15 @@ export default class CallHandler extends EventEmitter {
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
private areAnyCallsUnsilenced(): boolean {
|
private areAnyCallsUnsilenced(): boolean {
|
||||||
return this.calls.size > this.silencedCalls.size;
|
for (const call of this.calls.values()) {
|
||||||
|
if (
|
||||||
|
call.state === CallState.Ringing &&
|
||||||
|
!this.isCallSilenced(call.callId)
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async checkProtocols(maxTries) {
|
private async checkProtocols(maxTries) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue