mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08: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:
parent
40ba342aa2
commit
4c11a82fef
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user