Comment scoping block

pull/21833/head
David Baker 2020-10-13 09:55:03 +01:00
parent 414901dfae
commit ed9584bbac
1 changed files with 1 additions and 0 deletions

View File

@ -1740,6 +1740,7 @@ export default class RoomView extends React.Component<IProps, IState> {
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;