Avoiding javascript error when webrtc is enabled. (#4425)

This commit is contained in:
Christopher Speller
2016-11-02 10:57:28 -04:00
committed by Joram Wilander
parent d8aad0d4c6
commit b45cc443c9
+1
View File
@@ -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;