From 0d33c0f0a8d484afbf94a5e812e5f89f0b8bc913 Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 12 Dec 2022 13:40:52 -0800 Subject: [PATCH] removed unused variables --- src/views/tinode-web.jsx | 6 +++--- src/widgets/call-incoming.jsx | 8 +++----- src/widgets/call-panel.jsx | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/views/tinode-web.jsx b/src/views/tinode-web.jsx index b79b7a68..523d5ab7 100644 --- a/src/views/tinode-web.jsx +++ b/src/views/tinode-web.jsx @@ -169,7 +169,7 @@ class TinodeWeb extends React.Component { this.handleCallIceCandidate = this.handleCallIceCandidate.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); @@ -1791,7 +1791,7 @@ class TinodeWeb extends React.Component { }); } - handleCallAcceptCall(topicName) { + handleCallAccept(topicName) { const topic = this.tinode.getTopic(topicName); if (!topic) { return; @@ -1914,7 +1914,7 @@ class TinodeWeb extends React.Component { seq={this.state.callSeq} callState={this.state.callState} onRinging={this.handleCallRinging} - onAcceptCall={this.handleCallAcceptCall} + onAcceptCall={this.handleCallAccept} onReject={this.handleCallHangup} /> : diff --git a/src/widgets/call-incoming.jsx b/src/widgets/call-incoming.jsx index 59d126ad..8c87c929 100644 --- a/src/widgets/call-incoming.jsx +++ b/src/widgets/call-incoming.jsx @@ -37,7 +37,7 @@ export default class CallIncoming extends React.Component { return; } - this.resetDesc(topic, this.props); + this.resetDesc(topic); if (this.props.callState == CALL_STATE_INCOMING_RECEIVED) { // play() throws if the user did not click the app first: https://goo.gl/xX8pDD. RING_SOUND.play().catch(_ => {}); @@ -77,9 +77,7 @@ export default class CallIncoming extends React.Component { topic.onMetaDesc = this.previousMetaDesc; } - resetDesc(topic, props) { - const defacs = topic.getDefaultAccess() || {}; - const acs = topic.getAccessMode(); + resetDesc(topic) { const badges = []; if (topic.trusted) { for (const [key, val] of Object.entries(topic.trusted)) { @@ -101,7 +99,7 @@ export default class CallIncoming extends React.Component { if (!topic) { return; } - this.resetDesc(topic, this.props); + this.resetDesc(topic); if (this.previousMetaDesc && this.previousMetaDesc != this.onMetaDesc) { this.previousMetaDesc(desc); diff --git a/src/widgets/call-panel.jsx b/src/widgets/call-panel.jsx index 44da8b2c..3572fb80 100644 --- a/src/widgets/call-panel.jsx +++ b/src/widgets/call-panel.jsx @@ -421,14 +421,14 @@ class CallPanel extends React.PureComponent {
- +
- +