diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 8b90b6b810..f03b39ff52 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -1740,6 +1740,7 @@ export default class RoomView extends React.Component { let activeCall = null; { + // New block because this variable doesn't need to hang around for the rest of the function const call = this.getCallForRoom(); if (call && (this.state.callState !== 'ended' && this.state.callState !== 'ringing')) { activeCall = call;