Update to new API from matrix-react-sdk#5483 (#15942)

This commit is contained in:
Hubert Chathi 2020-12-15 12:57:17 -05:00 committed by GitHub
parent 7da72b219b
commit e0e29996e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");