2
0
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:
John Preston
2017-05-08 12:26:43 +03:00
parent 530a385d4e
commit e7dcd5ab15
4 changed files with 13 additions and 5 deletions

View File

@@ -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.