Fix right panel soft crashes due to missing room prop (#7923) (#7927)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
David Baker 2022-03-01 11:49:23 +00:00 committed by GitHub
parent bf2bb26cda
commit e502fafad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 39 deletions

View file

@ -975,7 +975,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
this.viewWelcome();
return;
}
if (!this.state.currentGroupId && !this.state.currentRoomId) {
if (!this.state.currentGroupId && !this.state.currentRoomId && !this.state.currentUserId) {
this.viewHome();
}
}