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

Method clearGroupCall

Telegram/SourceFiles/data/data_chat.cpp:250–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void ChatData::clearGroupCall() {
251 if (!_call) {
252 return;
253 } else if (const auto group = migrateTo(); group && !group->groupCall()) {
254 group->migrateCall(base::take(_call));
255 } else {
256 owner().unregisterGroupCall(_call.get());
257 _call = nullptr;
258 }
259 session().changes().peerUpdated(this, UpdateFlag::GroupCall);
260 removeFlags(Flag::CallActive | Flag::CallNotEmpty);
261}
262
263void ChatData::setGroupCallDefaultJoinAs(PeerId peerId) {
264 _callDefaultJoinAs = peerId;

Callers 3

discardMethod · 0.45
setupMigrationViewerMethod · 0.45
ApplyChatUpdateFunction · 0.45

Calls 6

migrateCallMethod · 0.80
unregisterGroupCallMethod · 0.80
peerUpdatedMethod · 0.80
groupCallMethod · 0.45
getMethod · 0.45
changesMethod · 0.45

Tested by

no test coverage detected