From 28e458075aeb869210789cd7f508703cb0c86c46 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" <jryans@gmail.com> Date: Wed, 7 Oct 2020 15:10:11 +0100 Subject: [PATCH] Fix types after underscore changes --- src/Lifecycle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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<MatrixC */ async function doSetLoggedIn( credentials: IMatrixClientCreds, - clearStorage: boolean, + clearStorageEnabled: boolean, ): Promise<MatrixClient> { 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(); }