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

Method Controller

Telegram/SourceFiles/info/info_controller.cpp:321–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321Controller::Controller(
322 not_null<WrapWidget*> widget,
323 not_null<Window::SessionController*> window,
324 not_null<ContentMemento*> memento)
325: AbstractController(window)
326, _widget(widget)
327, _key(memento->key())
328, _migrated(memento->migratedPeerId()
329 ? window->session().data().peer(memento->migratedPeerId()).get()
330 : nullptr)
331, _section(memento->section()) {
332 updateSearchControllers(memento);
333 setupMigrationViewer();
334 setupTopicViewer();
335}
336
337void Controller::replaceKey(Key key) {
338 _key = key;

Callers

nothing calls this directly

Calls 7

keyMethod · 0.45
migratedPeerIdMethod · 0.45
getMethod · 0.45
peerMethod · 0.45
dataMethod · 0.45
sessionMethod · 0.45
sectionMethod · 0.45

Tested by

no test coverage detected