| 461 | } |
| 462 | |
| 463 | void Instance::destroyGroupCall(not_null<GroupCall*> call) { |
| 464 | if (_currentGroupCall.get() == call) { |
| 465 | _currentGroupCallPanel->closeBeforeDestroy(); |
| 466 | _currentGroupCallPanel = nullptr; |
| 467 | |
| 468 | auto taken = base::take(_currentGroupCall); |
| 469 | _currentGroupCallChanges.fire(nullptr); |
| 470 | taken.reset(); |
| 471 | |
| 472 | if (Core::Quitting()) { |
| 473 | LOG(("Calls::Instance doesn't prevent quit any more.")); |
| 474 | } |
| 475 | Core::App().quitPreventFinished(); |
| 476 | } else if (_startingGroupCall.get() == call) { |
| 477 | base::take(_startingGroupCall); |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | void Instance::createGroupCall( |
| 482 | Group::JoinInfo info, |
no test coverage detected