mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Don't decline awaited incoming call on app quit.
This commit is contained in:
@@ -106,6 +106,13 @@ void Call::generateModExpFirst(base::const_byte_span randomSeed) {
|
||||
}
|
||||
}
|
||||
|
||||
bool Call::isIncomingWaiting() const {
|
||||
if (type() != Call::Type::Incoming) {
|
||||
return false;
|
||||
}
|
||||
return (_state == State::Starting) || (_state == State::WaitingIncoming);
|
||||
}
|
||||
|
||||
void Call::start(base::const_byte_span random) {
|
||||
// Save config here, because it is possible that it changes between
|
||||
// different usages inside the same call.
|
||||
|
Reference in New Issue
Block a user