mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02: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…
x
Reference in New Issue
Block a user