From a6903ccb3b5aec7ea4f1fca6f9dcee223ef2b862 Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Wed, 25 Oct 2023 08:52:36 +0200 Subject: [PATCH] MOBILE-4405 sites: Check tool_mobile_autologout instead of site version --- src/core/services/sites.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/services/sites.ts b/src/core/services/sites.ts index 06c55682eb8..7129238f800 100644 --- a/src/core/services/sites.ts +++ b/src/core/services/sites.ts @@ -1487,15 +1487,10 @@ export class CoreSitesProvider { await CoreUtils.ignoreErrors(( async () => { const siteId = await this.getStoredCurrentSiteId(); const site = await this.getSite(siteId); - - if (!site.isVersionGreaterEqualThan('4.3')) { - return; - } - const autoLogoutType = Number(site.getStoredConfig('tool_mobile_autologout')); const autoLogoutTime = Number(site.getStoredConfig('tool_mobile_autologouttime')); - if (autoLogoutType === CoreAutoLogoutType.NEVER || !site.id) { + if (!autoLogoutType || autoLogoutType === CoreAutoLogoutType.NEVER || !site.id) { return; }