mirror of https://github.com/vector-im/riot-web
Fix types after underscore changes
parent
72bd72e524
commit
28e458075a
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue