You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
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
This commit is contained in:
@@ -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',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user