Display video call labels.

This commit is contained in:
aforge
2022-03-22 00:45:47 -07:00
parent 45ad8bb2ad
commit b310a94180
3 changed files with 24 additions and 24 deletions
+1 -15
View File
@@ -1736,14 +1736,8 @@ class TinodeWeb extends React.Component {
this.handleCallClose();
return;
}
/*
if (!extend) {
this.handleCallClose();
return;
}
*/
let until = new Date(this.state.callLeaseExpires); //this.state.callLeaseExpires.getSeconds() + 10;
let until = new Date(this.state.callLeaseExpires);
until.setSeconds(until.getSeconds() + 10);
topic.call('extend-lease', this.state.callSeq, undefined, until)
.then((ctrl) => {
@@ -1756,20 +1750,12 @@ class TinodeWeb extends React.Component {
let head = {mime: 'application/tinode-video-call'};
this.handleSendMessage('started', undefined, undefined, head)
.then((ctrl) => {
//this.handleTeleLeaseReply(ctrl, 0);
if (ctrl.code < 200 || ctrl.code >= 300 || typeof ctrl.params == 'undefined' || typeof ctrl.params['seq'] == 'undefined') {
this.handleCallClose();
return;
}
this.setState({callSeq: ctrl.params['seq']});
});
/*
topic.call('invite').then((ctrl) => {
if (ctrl.params && ctrl.params['sip-code'] == 100) {
this.handleTeleLeaseReply(ctrl, 0);
}
});
*/
} else if (callState == 3) {
const topic = this.tinode.getTopic(callTopic);
if (!topic) {