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

Method clearGroupCall

Telegram/SourceFiles/data/data_channel.cpp:1113–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113void ChannelData::clearGroupCall() {
1114 if (!_call) {
1115 return;
1116 }
1117 owner().unregisterGroupCall(_call.get());
1118 _call = nullptr;
1119 session().changes().peerUpdated(this, UpdateFlag::GroupCall);
1120 removeFlags(Flag::CallActive | Flag::CallNotEmpty);
1121}
1122
1123void ChannelData::setGroupCallDefaultJoinAs(PeerId peerId) {
1124 _callDefaultJoinAs = peerId;

Callers 1

ApplyChannelUpdateFunction · 0.45

Calls 4

unregisterGroupCallMethod · 0.80
peerUpdatedMethod · 0.80
getMethod · 0.45
changesMethod · 0.45

Tested by

no test coverage detected