mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
reemit view_right_panel_phase when showing rhs, so right tab is active
This commit is contained in:
parent
92c598dbcf
commit
c0ab74d5f1
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue