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
take buttons into account that are active over multiple phases when toggling
This commit is contained in:
@@ -60,8 +60,8 @@ export default class HeaderButtons extends React.Component {
|
||||
}, extras));
|
||||
}
|
||||
|
||||
togglePhase(phase) {
|
||||
if (this.state.phase === phase) {
|
||||
togglePhase(phase, validPhases = [phase]) {
|
||||
if (validPhases.includes(this.state.phase)) {
|
||||
dis.dispatch({
|
||||
action: 'hide_right_panel',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user