mirror of https://github.com/vector-im/riot-web
don't open right panel when switching room again
a view_right_panel_phase is dispatched by RoomHeaderButtons on view_room, which was triggering this to show the panel again. Check the fromHeader flag just like when hiding the panel so only room header buttons can hide or show the right panelpull/21833/head
parent
2cb817ae26
commit
a10f0a3267
|
@ -59,7 +59,7 @@ export default class HeaderButtons extends React.Component {
|
||||||
phase: null,
|
phase: null,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (this.props.collapsedRhs) {
|
if (this.props.collapsedRhs && payload.fromHeader) {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'show_right_panel',
|
action: 'show_right_panel',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue