Allow not to cache emoji sprites.

This commit is contained in:
John Preston 2019-09-17 11:11:08 +03:00
parent 3b0bf7cb1e
commit 8cf62c312f

View File

@ -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([