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 panel
pull/21833/head
Bruno Windels 2018-12-18 15:33:45 +01:00
parent 2cb817ae26
commit a10f0a3267
1 changed files with 1 additions and 1 deletions

View File

@ -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',
}); });