Update src/components/views/voip/CallPreview.tsx

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Dariusz Niemczyk 2021-08-03 15:00:55 +02:00 committed by Dariusz Niemczyk
parent f592d37f39
commit 466151a10c
No known key found for this signature in database
GPG Key ID: 28DFE7164F497CB6
1 changed files with 3 additions and 3 deletions

View File

@ -144,9 +144,10 @@ export default class CallPreview extends React.Component<IProps, IState> {
private onAction = (payload: ActionPayload) => {
switch (payload.action) {
case 'call_state': {
// listen for call state changes to prod the render method, which
// may hide the global CallView if the call it is tracking is dead
case 'call_state': {
this.updateCalls();
break;
}
@ -197,4 +198,3 @@ export default class CallPreview extends React.Component<IProps, IState> {
return <PersistentApp />;
}
}