From 4c11a82fefc764eeed8fda0fb64a19b79ceacc83 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 13 Oct 2020 12:16:15 +0100 Subject: [PATCH] Fix rogue (partial) call bar Call state is now null if there is no call, so check for that too --- src/components/structures/RoomStatusBar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/structures/RoomStatusBar.js b/src/components/structures/RoomStatusBar.js index 3e07d617de..e390be6979 100644 --- a/src/components/structures/RoomStatusBar.js +++ b/src/components/structures/RoomStatusBar.js @@ -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 = () => {