2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support custom attach bot icons.

This commit is contained in:
John Preston
2022-03-29 18:14:11 +04:00
parent 426be943a2
commit 72ae2f0269
10 changed files with 297 additions and 51 deletions

View File

@@ -677,9 +677,14 @@ Storage::Cache::Key DocumentData::bigFileBaseCacheKey() const {
: Storage::Cache::Key();
}
void DocumentData::forceToCache(bool force) {
_flags |= Flag::ForceToCache;
}
bool DocumentData::saveToCache() const {
return (size < Storage::kMaxFileInMemory)
&& ((type == StickerDocument)
|| (_flags & Flag::ForceToCache)
|| isAnimation()
|| isVoiceMessage()
|| isWallPaper()