mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 09:16:57 +00:00
Discard incoming calls by ring_timeout (1.5 minutes).
This commit is contained in:
parent
fba17a8c25
commit
57345cec3b
@ -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…
Reference in New Issue
Block a user