Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Trusting new extension shouldn't revoke other irrelevant extensions

Cette révision appartient à :
arkon 2024-01-07 16:05:31 -05:00
Parent 028da099dd
révision 8033a94ee2

Voir le fichier

@ -17,7 +17,7 @@ class TrustExtension(
fun trust(pkgName: String, versionCode: Long, signatureHash: String) {
preferences.trustedExtensions().getAndSet { exts ->
// Remove previously trusted versions
val removed = exts.filter { it.startsWith("$pkgName:") }.toMutableSet()
val removed = exts.filterNot { it.startsWith("$pkgName:") }.toMutableSet()
removed.also {
it += "$pkgName:$versionCode:$signatureHash"