From 851b06b0d277c841a631a2298647e02b781203f8 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 13 Nov 2024 00:32:16 +0100 Subject: [PATCH] fix: Handle migration of default URL used in v1.22 as well --- lib/services/manager_api.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/services/manager_api.dart b/lib/services/manager_api.dart index 37c6dfbc45..511eb44f3e 100644 --- a/lib/services/manager_api.dart +++ b/lib/services/manager_api.dart @@ -72,10 +72,11 @@ class ManagerAPI { final apiUrl = getApiUrl().toLowerCase(); final isReleases = apiUrl.contains('releases.revanced.app'); + final isDomain = apiUrl.endsWith('api.revanced.app'); final isV2 = apiUrl.contains('api.revanced.app/v2'); final isV3 = apiUrl.contains('api.revanced.app/v3'); - if (isReleases || isV2 || isV3) { + if (isReleases || isDomain || isV2 || isV3) { await resetApiUrl(); // At this point, the preference is removed. // Now, no more migration is needed because: