MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / destroyGroupCall

Method destroyGroupCall

Telegram/SourceFiles/calls/calls_instance.cpp:463–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463void 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
481void Instance::createGroupCall(
482 Group::JoinInfo info,

Callers 2

groupCallFinishedMethod · 0.80
groupCallFailedMethod · 0.80

Calls 7

QuittingFunction · 0.85
AppClass · 0.85
quitPreventFinishedMethod · 0.80
getMethod · 0.45
closeBeforeDestroyMethod · 0.45
fireMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected