mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Comment scoping block
This commit is contained in:
parent
414901dfae
commit
ed9584bbac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user