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:
@@ -253,7 +253,7 @@ void Instance::showInfoPanel(gsl::not_null<Call*> call) {
|
||||
}
|
||||
|
||||
bool Instance::isQuitPrevent() {
|
||||
if (!_currentCall) {
|
||||
if (!_currentCall || _currentCall->isIncomingWaiting()) {
|
||||
return false;
|
||||
}
|
||||
_currentCall->hangup();
|
||||
|
Reference in New Issue
Block a user