Таймаут вызова

This commit is contained in:
RoyceDa
2026-04-04 17:46:38 +02:00
parent c8c85991c7
commit 5979c31120
2 changed files with 13 additions and 10 deletions

View File

@@ -216,15 +216,13 @@ export function CallProvider(props : CallProviderProps) {
openCallsModal("The connection with the user was lost. The call has ended.")
end();
}
if(activeCall){
if(signalType == SignalType.RINGING_TIMEOUT) {
/**
* У нас уже есть активный звонок, игнорируем все сигналы, кроме сигналов от текущего звонка
* Другой стороне был отправлен сигнал звонка, но она не ответила на него в течении определенного времени
*/
if(packet.getSrc() != activeCall && packet.getSrc() != publicKey){
console.info("Received signal from " + packet.getSrc() + " but active call is with " + activeCall + ", ignoring");
info("Received signal for another call, ignoring");
return;
}
openCallsModal("The user did not answer the call in time. Please try again later.");
end();
return;
}
if(signalType == SignalType.END_CALL){
/**