2
0
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:
John Preston
2023-12-05 13:17:07 +04:00
parent 5c428ca502
commit c46f34c677
6 changed files with 135 additions and 38 deletions

View File

@@ -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 {