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

Method peer

Telegram/SourceFiles/info/info_controller.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79PeerData *Key::peer() const {
80 if (const auto peer = std::get_if<not_null<PeerData*>>(&_value)) {
81 return *peer;
82 } else if (const auto topic = this->topic()) {
83 return topic->peer();
84 } else if (const auto sublist = this->sublist()) {
85 return sublist->owningHistory()->peer;
86 }
87 return nullptr;
88}
89
90Data::ForumTopic *Key::topic() const {
91 if (const auto topic = std::get_if<not_null<Data::ForumTopic*>>(

Callers 15

ShowChooseBoxFunction · 0.45
resolveUsernameMethod · 0.45
fillTopBarMenuMethod · 0.45
injectActiveProfileMethod · 0.45
activeChatMethod · 0.45
createTopBarMethod · 0.45
addProfileCallsButtonMethod · 0.45
ControllerMethod · 0.45

Calls 3

topicMethod · 0.95
sublistMethod · 0.95
owningHistoryMethod · 0.45

Tested by

no test coverage detected