mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
only re-show right panel if it was visible before we were mounted
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b6ca16fc2f
commit
64112da25c
@ -55,9 +55,13 @@ module.exports = React.createClass({
|
||||
|
||||
componentWillUnmount: function() {
|
||||
this._unmounted = true;
|
||||
dis.dispatch({
|
||||
action: 'show_right_panel',
|
||||
});
|
||||
|
||||
if (!this.props.collapsedRhs) {
|
||||
dis.dispatch({
|
||||
action: 'show_right_panel',
|
||||
});
|
||||
}
|
||||
|
||||
dis.dispatch({
|
||||
action: 'ui_opacity',
|
||||
sideOpacity: 1.0,
|
||||
|
Loading…
Reference in New Issue
Block a user