UpdateWorker: Always verify certs for auto-updates

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-07-20 10:01:22 +07:00
parent ee94d01c9d
commit 41bf1cba32

View File

@@ -127,7 +127,9 @@ class UpdateWorker @AssistedInject constructor(
}
try {
val updatesList = appUtil.checkUpdates().filterNot { it.isSelfUpdate() }
val updatesList = appUtil.checkUpdates()
.filter { it.hasValidCert }
.filterNot { it.isSelfUpdate() }
if (updatesList.isNotEmpty()) {
if (autoUpdatesMode == 1) {