diff options
author | enahum <nahumhbl@gmail.com> | 2016-07-06 14:08:22 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-07-06 10:08:22 -0800 |
commit | 26c91e73fef89b1d4a0ef04ef39589243d411752 (patch) | |
tree | b67ba480df67c0ebf76bd2a47e884e69177759d7 /webapp | |
parent | b157d6b1cf7cc1d2322f075533ef0ab8e06534fc (diff) | |
download | chat-26c91e73fef89b1d4a0ef04ef39589243d411752.tar.gz chat-26c91e73fef89b1d4a0ef04ef39589243d411752.tar.bz2 chat-26c91e73fef89b1d4a0ef04ef39589243d411752.zip |
PLT-3225 Firefox: Channel header disappears after renaming a channel (fixed with channel switch) (#3470)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/channel_header.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/components/channel_header.jsx b/webapp/components/channel_header.jsx index cfffc70ee..bb7508a40 100644 --- a/webapp/components/channel_header.jsx +++ b/webapp/components/channel_header.jsx @@ -101,6 +101,10 @@ export default class ChannelHeader extends React.Component { document.removeEventListener('keydown', this.openRecentMentions); } + shouldComponentUpdate(nextProps) { + return !!nextProps.channelId; + } + onListenerChange() { const newState = this.getStateFromStores(); if (!Utils.areObjectsEqual(newState, this.state)) { |