diff --git a/src/vector/app.tsx b/src/vector/app.tsx index 63dd0f6ad2..61eef52215 100644 --- a/src/vector/app.tsx +++ b/src/vector/app.tsx @@ -236,7 +236,7 @@ async function verifyServerConfig() { validatedConfig = AutoDiscoveryUtils.buildValidatedConfigFromDiscovery(serverName, discoveryResult, true); } catch (e) { - const {hsUrl, isUrl, userId} = Lifecycle.getLocalStorageSessionVars(); + const {hsUrl, isUrl, userId} = await Lifecycle.getStoredSessionVars(); if (hsUrl && userId) { console.error(e); console.warn("A session was found - suppressing config error and using the session's homeserver");