1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

Fix types after underscore changes

This commit is contained in:
J. Ryan Stinnett
2020-10-07 15:10:11 +01:00
parent 72bd72e524
commit 28e458075a

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();
} }