diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-11-02 10:57:28 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-11-02 10:57:28 -0400 |
commit | b45cc443c9e9fdf8147d354b95b6fecb31b2e7b2 (patch) | |
tree | 1d041d8f3acf0f42757faa3630c9165b01f0d412 /webapp/components | |
parent | d8aad0d4c66544dc0047af56366f7c37ebf9a3dc (diff) | |
download | chat-b45cc443c9e9fdf8147d354b95b6fecb31b2e7b2.tar.gz chat-b45cc443c9e9fdf8147d354b95b6fecb31b2e7b2.tar.bz2 chat-b45cc443c9e9fdf8147d354b95b6fecb31b2e7b2.zip |
Avoiding javascript error when webrtc is enabled. (#4425)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/channel_header.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/channel_header.jsx b/webapp/components/channel_header.jsx index b92a316ca..98c6f7947 100644 --- a/webapp/components/channel_header.jsx +++ b/webapp/components/channel_header.jsx @@ -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; |