You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-08 17:48:33 +03:00
Set header buttons to no phase when right panel is closed (#7506)
This commit is contained in:
@@ -80,7 +80,8 @@ export default abstract class HeaderButtons<P = {}> extends React.Component<IPro
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public isPhase(phases: string | string[]) {
|
public isPhase(phases: string | string[]): boolean {
|
||||||
|
if (!RightPanelStore.instance.isOpenForRoom) return false;
|
||||||
if (Array.isArray(phases)) {
|
if (Array.isArray(phases)) {
|
||||||
return phases.includes(this.state.phase);
|
return phases.includes(this.state.phase);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user