mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-19 05:21:22 +02:00
reemit view_right_panel_phase when showing rhs, so right tab is active
This commit is contained in:
parent
92c598dbcf
commit
c0ab74d5f1
@ -74,6 +74,11 @@ export default class HeaderButtons extends React.Component {
|
||||
dis.dispatch({
|
||||
action: 'show_right_panel',
|
||||
});
|
||||
// emit payload again as the RightPanel didn't exist up
|
||||
// till show_right_panel, just without the fromHeader flag
|
||||
// as that would hide the right panel again
|
||||
dis.dispatch(Object.assign({}, payload, {fromHeader: false}));
|
||||
|
||||
}
|
||||
this.setState({
|
||||
phase: payload.phase,
|
||||
|
Loading…
x
Reference in New Issue
Block a user