summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-07-06 14:08:22 -0400
committerCorey Hulen <corey@hulen.com>2016-07-06 10:08:22 -0800
commit26c91e73fef89b1d4a0ef04ef39589243d411752 (patch)
treeb67ba480df67c0ebf76bd2a47e884e69177759d7 /webapp
parentb157d6b1cf7cc1d2322f075533ef0ab8e06534fc (diff)
downloadchat-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.jsx4
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)) {