Allow switching to private channels with /join command (#6579)

This commit is contained in:
Joram Wilander
2017-06-05 11:57:50 -04:00
committed by GitHub
parent b0f32e3c19
commit 0f3bd85b8d
2 changed files with 6 additions and 4 deletions

View File

@@ -22,9 +22,7 @@ export default class ConfirmModal extends React.Component {
}
componentWillUnmount() {
if (!this.props.show) {
document.removeEventListener('keypress', this.handleKeypress);
}
document.removeEventListener('keypress', this.handleKeypress);
}
componentWillReceiveProps(nextProps) {