Merge pull request #5310 from matrix-org/dbkr/fix_rogue_half_call_bar

Fix rogue (partial) call bar
This commit is contained in:
David Baker 2020-10-13 12:24:10 +01:00 committed by GitHub
commit 4425ae30e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = () => {