diff --git a/src/Lifecycle.ts b/src/Lifecycle.ts index 2ab56af77c..c4e7ae5550 100644 --- a/src/Lifecycle.ts +++ b/src/Lifecycle.ts @@ -448,7 +448,7 @@ export function hydrateSession(credentials: IMatrixClientCreds): Promise { credentials.guest = Boolean(credentials.guest); @@ -472,7 +472,7 @@ async function doSetLoggedIn( // (dis.dispatch uses `setTimeout`, which does not guarantee ordering.) dis.dispatch({action: 'on_logging_in'}, true); - if (clearStorage) { + if (clearStorageEnabled) { await clearStorage(); }