Merge pull request #6716 from matrix-org/t3chguy/fix/18668

Clear currentRoomId when viewing home page, fixing document title
pull/21833/head
Michael Telatynski 2021-09-01 09:01:52 +01:00 committed by GitHub
commit 642d8a0ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1016,6 +1016,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
this.setStateForNewView({ this.setStateForNewView({
view: Views.LOGGED_IN, view: Views.LOGGED_IN,
justRegistered, justRegistered,
currentRoomId: null,
}); });
this.setPage(PageTypes.HomePage); this.setPage(PageTypes.HomePage);
this.notifyNewScreen('home'); this.notifyNewScreen('home');