mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Load non-streamable documents.
This commit is contained in:
@@ -772,7 +772,11 @@ Storage::Cache::Key DocumentData::bigFileBaseCacheKey() const {
|
||||
}
|
||||
|
||||
void DocumentData::forceToCache(bool force) {
|
||||
_flags |= Flag::ForceToCache;
|
||||
if (force) {
|
||||
_flags |= Flag::ForceToCache;
|
||||
} else {
|
||||
_flags &= ~Flag::ForceToCache;
|
||||
}
|
||||
}
|
||||
|
||||
bool DocumentData::saveToCache() const {
|
||||
|
Reference in New Issue
Block a user