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

Method primeFullRequest

Telegram/SourceFiles/iv/iv_instance.cpp:1000–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000void Instance::primeFullRequest(
1001 not_null<Main::Session*> session,
1002 not_null<Data*> data) {
1003 auto &requested = _fullRequested[session][data->id()];
1004 requested.page = session->data().webpage(data->pageId()).get();
1005 requested.hash = data->hash();
1006}
1007
1008void Instance::trackSession(not_null<Main::Session*> session) {
1009 if (!_tracking.emplace(session).second) {

Callers

nothing calls this directly

Calls 6

pageIdMethod · 0.80
idMethod · 0.45
getMethod · 0.45
webpageMethod · 0.45
dataMethod · 0.45
hashMethod · 0.45

Tested by

no test coverage detected