Browse Source

fix: Drop duplicated method.

tags/v0.0.2
damencho 2 years ago
parent
commit
127d81d908
2 changed files with 1 additions and 10 deletions
  1. 0
    7
      modules/xmpp/JingleSession.js
  2. 1
    3
      modules/xmpp/JingleSessionPC.js

+ 0
- 7
modules/xmpp/JingleSession.js View File

@@ -203,12 +203,5 @@ export default class JingleSession extends Listenable {
203 203
      */
204 204
     acceptOffer(jingle, success, failure) {}
205 205
 
206
-    /**
207
-     * Returns the JID of the initiator of the jingle session.
208
-     */
209
-    _getInitiatorJid() {
210
-        return this.isInitiator ? this.localJid : this.remoteJid;
211
-    }
212
-
213 206
     /* eslint-enable no-unused-vars, no-empty-function */
214 207
 }

+ 1
- 3
modules/xmpp/JingleSessionPC.js View File

@@ -3039,8 +3039,6 @@ export default class JingleSessionPC extends JingleSession {
3039 3039
         // We want the two participants in a P2P call to agree on the value of
3040 3040
         // the "suspend" option. We use the JID of the initiator, because it is
3041 3041
         // both randomly selected and agreed upon by both participants.
3042
-        const jid = this._getInitiatorJid();
3043
-
3044
-        return integerHash(jid) % 2 === 0;
3042
+        return integerHash(this.initiatorJid) % 2 === 0;
3045 3043
     }
3046 3044
 }

Loading…
Cancel
Save