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

Этот коммит содержится в:
Christopher Speller
2016-11-02 10:57:28 -04:00
коммит произвёл Joram Wilander
родитель d8aad0d4c6
Коммит 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;