This commit is contained in:
or-else
2022-06-13 15:32:10 -07:00
parent 1fb3a233a2
commit bdfe163ecf
7 changed files with 21 additions and 15 deletions
+5 -4
View File
@@ -168,6 +168,9 @@ class TinodeWeb extends React.Component {
this.handleCallAcceptCall = this.handleCallAcceptCall.bind(this);
this.sendMessageToTopic = this.sendMessageToTopic.bind(this);
// FIXME: this is unused.
this.callTimeoutTimer = null;
}
getBlankState() {
@@ -1753,9 +1756,8 @@ class TinodeWeb extends React.Component {
}
handleCallClose() {
if (this.state.callTimeout) {
console.log('closing call timeout ', this.state.callTimeout);
clearTimeout(this.state.callTimeout);
if (this.callTimeoutTimer) {
clearTimeout(this.callTimeoutTimer);
}
this.setState({
callTopic: undefined,
@@ -1797,7 +1799,6 @@ class TinodeWeb extends React.Component {
}
break;
case 'accept':
console.log('TinodeWeb: received accept msg ', info);
// If another my session has accepted the call.
if (Tinode.isMeTopicName(info.topic) && this.tinode.isMe(info.from)) {
this.setState({