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

This commit is contained in:
Michael Telatynski 2022-03-01 11:15:23 +00:00 committed by GitHub
parent 36adba101c
commit 7a32a68a0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 39 deletions

View file

@ -983,7 +983,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();
}
}