mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Support custom attach bot icons.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user