From 861c42e3d5155b5ea9441747c9d97de92dba42ce Mon Sep 17 00:00:00 2001 From: Andreas Traczyk Date: Tue, 24 Oct 2023 13:20:03 -0400 Subject: [PATCH] fix: don't remove the daemon cache dir Change-Id: Icde3c4f5dbb54c2ae93712434f5d08def4e3c3bb --- src/app/utilsadapter.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/app/utilsadapter.cpp b/src/app/utilsadapter.cpp index 5926ae00..4704f730 100644 --- a/src/app/utilsadapter.cpp +++ b/src/app/utilsadapter.cpp @@ -154,18 +154,7 @@ UtilsAdapter::getLocalDataPath() const QString UtilsAdapter::getCachePath() { - const auto cacheDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); - - // Remove old mistaken cache dir. - // NOTE: this can be removed once we give a chance for users to upgrade. - QDir oldCacheDir(cacheDir); - oldCacheDir.cdUp(); - oldCacheDir.setPath(oldCacheDir.absolutePath() + "/jami"); - if (oldCacheDir.exists()) { - oldCacheDir.removeRecursively(); - } - - return cacheDir; + return QStandardPaths::writableLocation(QStandardPaths::CacheLocation); } QString