Force recreate download index cache on upgrade

Fixes #10187
This commit is contained in:
arkon
2023-12-03 14:58:08 -05:00
parent 3aead3a2a9
commit ccadfc8fe5
3 changed files with 7 additions and 2 deletions

View File

@@ -416,6 +416,11 @@ object Migrations {
newKey = { Preference.appStateKey(it) },
)
}
if (oldVersion < 111) {
File(context.cacheDir, "dl_index_cache")
.takeIf { it.exists() }
?.delete()
}
return true
}