removed unused variables
This commit is contained in:
@@ -169,7 +169,7 @@ class TinodeWeb extends React.Component {
|
|||||||
this.handleCallIceCandidate = this.handleCallIceCandidate.bind(this);
|
this.handleCallIceCandidate = this.handleCallIceCandidate.bind(this);
|
||||||
this.handleCallSendAnswer = this.handleCallSendAnswer.bind(this);
|
this.handleCallSendAnswer = this.handleCallSendAnswer.bind(this);
|
||||||
|
|
||||||
this.handleCallAcceptCall = this.handleCallAcceptCall.bind(this);
|
this.handleCallAccept = this.handleCallAccept.bind(this);
|
||||||
|
|
||||||
this.sendMessageToTopic = this.sendMessageToTopic.bind(this);
|
this.sendMessageToTopic = this.sendMessageToTopic.bind(this);
|
||||||
|
|
||||||
@@ -1791,7 +1791,7 @@ class TinodeWeb extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
handleCallAcceptCall(topicName) {
|
handleCallAccept(topicName) {
|
||||||
const topic = this.tinode.getTopic(topicName);
|
const topic = this.tinode.getTopic(topicName);
|
||||||
if (!topic) {
|
if (!topic) {
|
||||||
return;
|
return;
|
||||||
@@ -1914,7 +1914,7 @@ class TinodeWeb extends React.Component {
|
|||||||
seq={this.state.callSeq}
|
seq={this.state.callSeq}
|
||||||
callState={this.state.callState}
|
callState={this.state.callState}
|
||||||
onRinging={this.handleCallRinging}
|
onRinging={this.handleCallRinging}
|
||||||
onAcceptCall={this.handleCallAcceptCall}
|
onAcceptCall={this.handleCallAccept}
|
||||||
onReject={this.handleCallHangup}
|
onReject={this.handleCallHangup}
|
||||||
/>
|
/>
|
||||||
:
|
:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export default class CallIncoming extends React.Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.resetDesc(topic, this.props);
|
this.resetDesc(topic);
|
||||||
if (this.props.callState == CALL_STATE_INCOMING_RECEIVED) {
|
if (this.props.callState == CALL_STATE_INCOMING_RECEIVED) {
|
||||||
// play() throws if the user did not click the app first: https://goo.gl/xX8pDD.
|
// play() throws if the user did not click the app first: https://goo.gl/xX8pDD.
|
||||||
RING_SOUND.play().catch(_ => {});
|
RING_SOUND.play().catch(_ => {});
|
||||||
@@ -77,9 +77,7 @@ export default class CallIncoming extends React.Component {
|
|||||||
topic.onMetaDesc = this.previousMetaDesc;
|
topic.onMetaDesc = this.previousMetaDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
resetDesc(topic, props) {
|
resetDesc(topic) {
|
||||||
const defacs = topic.getDefaultAccess() || {};
|
|
||||||
const acs = topic.getAccessMode();
|
|
||||||
const badges = [];
|
const badges = [];
|
||||||
if (topic.trusted) {
|
if (topic.trusted) {
|
||||||
for (const [key, val] of Object.entries(topic.trusted)) {
|
for (const [key, val] of Object.entries(topic.trusted)) {
|
||||||
@@ -101,7 +99,7 @@ export default class CallIncoming extends React.Component {
|
|||||||
if (!topic) {
|
if (!topic) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.resetDesc(topic, this.props);
|
this.resetDesc(topic);
|
||||||
|
|
||||||
if (this.previousMetaDesc && this.previousMetaDesc != this.onMetaDesc) {
|
if (this.previousMetaDesc && this.previousMetaDesc != this.onMetaDesc) {
|
||||||
this.previousMetaDesc(desc);
|
this.previousMetaDesc(desc);
|
||||||
|
|||||||
@@ -421,14 +421,14 @@ class CallPanel extends React.PureComponent {
|
|||||||
<div id="video-container">
|
<div id="video-container">
|
||||||
<div id="video-container-panel">
|
<div id="video-container-panel">
|
||||||
<div className="call-party self">
|
<div className="call-party self">
|
||||||
<video ref={this.localRef} autoPlay muted playsInline></video>
|
<video ref={this.localRef} autoPlay muted playsInline />
|
||||||
<div className="caller-name inactive">
|
<div className="caller-name inactive">
|
||||||
<FormattedMessage id="calls_you_label"
|
<FormattedMessage id="calls_you_label"
|
||||||
defaultMessage="You" description="Shown over the local video screen" />
|
defaultMessage="You" description="Shown over the local video screen" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="call-party peer">
|
<div className="call-party peer">
|
||||||
<video ref={this.remoteRef} autoPlay playsInline></video>
|
<video ref={this.remoteRef} autoPlay playsInline />
|
||||||
{remoteActive ?
|
{remoteActive ?
|
||||||
<div className="caller-name inactive">{peerTitle}</div> :
|
<div className="caller-name inactive">{peerTitle}</div> :
|
||||||
<div className={`caller-card${pulseAnimation}`}>
|
<div className={`caller-card${pulseAnimation}`}>
|
||||||
|
|||||||
Reference in New Issue
Block a user