mirror of https://github.com/vector-im/riot-web
reemit view_right_panel_phase when showing rhs, so right tab is active
parent
92c598dbcf
commit
c0ab74d5f1
|
@ -74,6 +74,11 @@ export default class HeaderButtons extends React.Component {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'show_right_panel',
|
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({
|
this.setState({
|
||||||
phase: payload.phase,
|
phase: payload.phase,
|
||||||
|
|
Loading…
Reference in New Issue