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

Method keepAlive

Telegram/SourceFiles/data/data_session.cpp:475–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475void Session::keepAlive(std::shared_ptr<PhotoMedia> media) {
476 // NB! This allows PhotoMedia to outlive Main::Session!
477 // In case this is a problem this code should be rewritten.
478 crl::on_main(&session(), [media = std::move(media)]{});
479}
480
481void Session::keepAlive(std::shared_ptr<DocumentMedia> media) {
482 // NB! This allows DocumentMedia to outlive Main::Session!

Callers 8

collectLocalDataMethod · 0.45
collectLocalDataMethod · 0.45
~ThemeDocumentMethod · 0.45
~DocumentMethod · 0.45
~WebPageMethod · 0.45
~GifMethod · 0.45
~StickerMethod · 0.45
~PhotoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected