1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-07 03:42:20 +03:00

Set header buttons to no phase when right panel is closed (#7506)

This commit is contained in:
J. Ryan Stinnett
2022-01-11 10:32:55 +00:00
committed by GitHub
parent f6effc52fd
commit 81257933ef

View File

@@ -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)) {
return phases.includes(this.state.phase);
} else {