1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-04 11:51:45 +03:00

Fix rogue (partial) call bar

Call state is now null if there is no call, so check for that too
This commit is contained in:
David Baker
2020-10-13 12:16:15 +01:00
parent 40ba342aa2
commit 4c11a82fef

View File

@@ -123,7 +123,9 @@ export default class RoomStatusBar extends React.Component {
};
_showCallBar() {
return this.props.callState !== CallState.Ended && this.props.callState !== CallState.Ringing;
return (this.props.callState &&
(this.props.callState !== CallState.Ended && this.props.callState !== CallState.Ringing)
);
}
_onResendAllClick = () => {