Skip to content

Commit 92af206

Browse files
committed
onShowPostLoginScreen need no longer be async
1 parent 1cf6476 commit 92af206

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/components/structures/MatrixChat.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
14091409
*
14101410
* In other words, whenever we think we have completed the login and E2E setup tasks.
14111411
*/
1412-
private async onShowPostLoginScreen(): Promise<void> {
1412+
private onShowPostLoginScreen(): void {
14131413
logger.debug("onShowPostLoginScreen: Transitioning to logged in view.");
14141414

14151415
this.setStateForNewView({ view: Views.LOGGED_IN });
@@ -1814,7 +1814,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
18141814
if (shouldForceVerification) {
18151815
this.setStateForNewView({ view: Views.COMPLETE_SECURITY });
18161816
} else {
1817-
await this.onShowPostLoginScreen();
1817+
this.onShowPostLoginScreen();
18181818
}
18191819
}
18201820
}
@@ -2134,9 +2134,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
21342134
}
21352135
}
21362136

2137-
await this.onShowPostLoginScreen().catch((e) => {
2138-
logger.error("Exception showing post-login screen", e);
2139-
});
2137+
this.onShowPostLoginScreen();
21402138
};
21412139

21422140
private getFragmentAfterLogin(): string {

0 commit comments

Comments
 (0)