mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Avoiding javascript error when webrtc is enabled. (#4425)
This commit is contained in:
committed by
Joram Wilander
parent
d8aad0d4c6
commit
b45cc443c9
@@ -84,6 +84,7 @@ export default class ChannelHeader extends React.Component {
|
||||
if (!this.state.channel ||
|
||||
!this.state.memberChannel ||
|
||||
!this.state.users ||
|
||||
(Object.keys(this.state.users).length === 0 && this.state.channel.type === 'D') ||
|
||||
!this.state.userCount ||
|
||||
!this.state.currentUser) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user