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

Method saveToCache

Telegram/SourceFiles/data/data_document.cpp:1021–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021bool DocumentData::saveToCache() const {
1022 return (size < Storage::kMaxFileInMemory)
1023 && ((type == StickerDocument)
1024 || (_flags & Flag::ForceToCache)
1025 || isAnimation()
1026 || isVoiceMessage()
1027 || isWallPaper()
1028 || isTheme()
1029 || (hasMimeType(u"image/png"_q)
1030 && _filename.startsWith("image_")));
1031}
1032
1033void DocumentData::automaticLoadSettingsChanged() {
1034 if (!cancelled() || status != FileReady) {

Callers 3

automaticLoadMethod · 0.80
SaveMethod · 0.80
uploadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected