PLT-3225 Firefox: Channel header disappears after renaming a channel (fixed with channel switch) (#3470)

Этот коммит содержится в:
enahum
2016-07-06 14:08:22 -04:00
коммит произвёл Corey Hulen
родитель b157d6b1cf
Коммит 26c91e73fe

Просмотреть файл

@@ -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)) {