mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Discard incoming calls by ring_timeout (1.5 minutes).
This commit is contained in:
parent
fba17a8c25
commit
57345cec3b
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,8 @@ Call::Call(
|
|||
if (_type == Type::Outgoing) {
|
||||
setState(State::Requesting);
|
||||
} else {
|
||||
const auto &config = _user->session().serverConfig();
|
||||
_discardByTimeoutTimer.callOnce(config.callRingTimeoutMs);
|
||||
startWaitingTrack();
|
||||
}
|
||||
setupOutgoingVideo();
|
||||
|
@ -967,6 +969,7 @@ void Call::setState(State state) {
|
|||
break;
|
||||
case State::Busy:
|
||||
_delegate->callPlaySound(Delegate::CallSound::Busy);
|
||||
_discardByTimeoutTimer.cancel();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue