mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix caching for large sticker area.
This commit is contained in:
@@ -20,7 +20,9 @@ namespace Cache {
|
||||
struct Key;
|
||||
} // namespace Cache
|
||||
|
||||
// This value is used in local cache database settings!
|
||||
constexpr auto kMaxFileInMemory = 10 * 1024 * 1024; // 10 MB max file could be hold in memory
|
||||
|
||||
constexpr auto kMaxVoiceInMemory = 2 * 1024 * 1024; // 2 MB audio is hold in memory and auto loaded
|
||||
constexpr auto kMaxStickerInMemory = 2 * 1024 * 1024; // 2 MB stickers hold in memory, auto loaded and displayed inline
|
||||
constexpr auto kMaxWallPaperInMemory = kMaxFileInMemory;
|
||||
|
Reference in New Issue
Block a user