Fix types after underscore changes

pull/21833/head
J. Ryan Stinnett 2020-10-07 15:10:11 +01:00
parent 72bd72e524
commit 28e458075a
1 changed files with 2 additions and 2 deletions

View File

@ -448,7 +448,7 @@ export function hydrateSession(credentials: IMatrixClientCreds): Promise<MatrixC
*/ */
async function doSetLoggedIn( async function doSetLoggedIn(
credentials: IMatrixClientCreds, credentials: IMatrixClientCreds,
clearStorage: boolean, clearStorageEnabled: boolean,
): Promise<MatrixClient> { ): Promise<MatrixClient> {
credentials.guest = Boolean(credentials.guest); credentials.guest = Boolean(credentials.guest);
@ -472,7 +472,7 @@ async function doSetLoggedIn(
// (dis.dispatch uses `setTimeout`, which does not guarantee ordering.) // (dis.dispatch uses `setTimeout`, which does not guarantee ordering.)
dis.dispatch({action: 'on_logging_in'}, true); dis.dispatch({action: 'on_logging_in'}, true);
if (clearStorage) { if (clearStorageEnabled) {
await clearStorage(); await clearStorage();
} }