mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix call discard when hanging up before request.
This commit is contained in:
@@ -136,18 +136,19 @@ void Call::startOutgoing() {
|
||||
return;
|
||||
}
|
||||
|
||||
auto &phoneCall = call.vphone_call;
|
||||
auto &waitingCall = phoneCall.c_phoneCallWaiting();
|
||||
_id = waitingCall.vid.v;
|
||||
_accessHash = waitingCall.vaccess_hash.v;
|
||||
setState(State::Waiting);
|
||||
|
||||
if (_finishAfterRequestingCall) {
|
||||
hangup();
|
||||
return;
|
||||
}
|
||||
_discardByTimeoutTimer.callOnce(Global::CallReceiveTimeoutMs());
|
||||
|
||||
auto &phoneCall = call.vphone_call.c_phoneCallWaiting();
|
||||
_id = phoneCall.vid.v;
|
||||
_accessHash = phoneCall.vaccess_hash.v;
|
||||
handleUpdate(call.vphone_call);
|
||||
_discardByTimeoutTimer.callOnce(Global::CallReceiveTimeoutMs());
|
||||
handleUpdate(phoneCall);
|
||||
}).fail([this](const RPCError &error) {
|
||||
handleRequestError(error);
|
||||
}).send();
|
||||
|
Reference in New Issue
Block a user