mirror of https://github.com/vector-im/riot-web
Fix rogue (partial) call bar
Call state is now null if there is no call, so check for that toopull/21833/head
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