temporarily stop hiding the statusbar

as per https://github.com/vector-im/riot-web/issues/1991#issuecomment-276953915
pull/21833/head
Matthew Hodgson 2017-02-02 17:48:47 +00:00
parent e9a53a8957
commit 4ab479594b
1 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,7 @@ module.exports = React.createClass({
// callback for when the status bar can be hidden from view, as it is // callback for when the status bar can be hidden from view, as it is
// not displaying anything // not displaying anything
onHidden: React.PropTypes.func, onHidden: React.PropTypes.func,
// callback for when the status bar is displaying something and should // callback for when the status bar is displaying something and should
// be visible // be visible
onVisible: React.PropTypes.func, onVisible: React.PropTypes.func,
@ -113,7 +114,9 @@ module.exports = React.createClass({
clearTimeout(this.hideDebouncer); clearTimeout(this.hideDebouncer);
} }
this.hideDebouncer = setTimeout(() => { this.hideDebouncer = setTimeout(() => {
this.props.onHidden(); // temporarily stop hiding the statusbar as per
// https://github.com/vector-im/riot-web/issues/1991#issuecomment-276953915
// this.props.onHidden();
}, HIDE_DEBOUNCE_MS); }, HIDE_DEBOUNCE_MS);
} }
}, },