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

Function ShowForPeer

Telegram/SourceFiles/apiwrap.cpp:121–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119using UpdatedFileReferences = Data::UpdatedFileReferences;
120
121[[nodiscard]] std::shared_ptr<ChatHelpers::Show> ShowForPeer(
122 not_null<PeerData*> peer) {
123 if (const auto window = Core::App().windowFor(peer)) {
124 if (const auto controller = window->sessionController()) {
125 if (&controller->session() == &peer->session()) {
126 return controller->uiShow();
127 }
128 }
129 }
130 return nullptr;
131}
132
133void ShowChannelsLimitBox(not_null<PeerData*> peer) {
134 if (const auto window = Core::App().windowFor(peer)) {

Callers 2

sendMessageFailMethod · 0.85
joinChannelMethod · 0.85

Calls 5

AppClass · 0.85
windowForMethod · 0.80
sessionControllerMethod · 0.45
sessionMethod · 0.45
uiShowMethod · 0.45

Tested by

no test coverage detected