call in progress animation, crash if button is clicked too soon

This commit is contained in:
or-else
2022-05-28 14:42:06 -07:00
parent b37ce5e8cf
commit 535d276665
9 changed files with 69 additions and 40 deletions
+2 -2
View File
@@ -11,9 +11,9 @@ import { Drafty, Tinode } from 'tinode-sdk';
import Alert from '../widgets/alert.jsx';
import ContextMenu from '../widgets/context-menu.jsx';
import ForwardDialog from '../widgets/forward-dialog.jsx';
import IncomingCall from '../widgets/call-incoming.jsx';
import InfoView from './info-view.jsx';
import IncomingCallView from '../widgets/call-incoming.jsx';
import MessagesView from './messages-view.jsx';
import SidepanelView from './sidepanel-view.jsx';
@@ -1858,7 +1858,7 @@ class TinodeWeb extends React.Component {
null
}
{this.state.callTopic && this.state.callState == CALL_STATE_INCOMING_RECEIVED ?
<IncomingCallView
<IncomingCall
tinode={this.tinode}
onClose={this.handleCallClose}
topic={this.state.callTopic}