Merge pull request #1680 from matrix-org/t3chguy/hide_roomstatusbar

Hide status bar on visible->hidden transition
This commit is contained in:
Luke Barnard 2018-01-05 15:26:22 +00:00 committed by GitHub
commit 8c84c3f929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -170,8 +170,10 @@ module.exports = React.createClass({
// Check whether current size is greater than 0, if yes call props.onVisible
_checkSize: function() {
if (this.props.onVisible && this._getSize()) {
this.props.onVisible();
if (this._getSize()) {
if (this.props.onVisible) this.props.onVisible();
} else {
if (this.props.onHidden) this.props.onHidden();
}
},