Add cached emotes fallback for failed provider fetches (#6125)

This commit is contained in:
Elias A.
2025-04-12 13:56:04 +03:00
committed by GitHub
parent b59124702c
commit 7c8274ed56
12 changed files with 198 additions and 41 deletions
+6 -1
View File
@@ -39,7 +39,7 @@ QString Paths::cacheDirectory() const
static const auto pathSetting = [] {
QStringSetting cachePathSetting("/cache/path");
cachePathSetting.connect([](const auto &newPath, auto) {
cachePathSetting.connect([](const auto &newPath) {
if (!newPath.isEmpty())
{
QDir().mkpath(newPath);
@@ -59,6 +59,11 @@ QString Paths::cacheDirectory() const
return path;
}
QString Paths::cacheFilePath(const QString &fileName) const
{
return combinePath(this->cacheDirectory(), fileName);
}
void Paths::initAppFilePathHash()
{
this->applicationFilePathHash =