From 8cf62c312f2053da712626a675d543c915f767ad Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 17 Sep 2019 11:11:08 +0300 Subject: [PATCH] Allow not to cache emoji sprites. --- Telegram/SourceFiles/ui/emoji_config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/ui/emoji_config.cpp b/Telegram/SourceFiles/ui/emoji_config.cpp index 62cfad9a49..0252669e3c 100644 --- a/Telegram/SourceFiles/ui/emoji_config.cpp +++ b/Telegram/SourceFiles/ui/emoji_config.cpp @@ -817,6 +817,10 @@ void Instance::checkUniversalImages() { void Instance::generateCache() { checkUniversalImages(); + const auto cachePath = internal::CacheFileFolder(); + if (cachePath.isEmpty()) { + return; + } const auto size = _size; const auto index = _sprites.size(); crl::async([