Browse Source

feat: Skip p2p when the participant is jigasi.

dev1
damencho 4 years ago
parent
commit
87c6e37475
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      JitsiConference.js

+ 1
- 1
JitsiConference.js View File

@@ -3169,7 +3169,7 @@ JitsiConference.prototype._maybeStartOrStopP2P = function(userLeftEvent) {
3169 3169
 JitsiConference.prototype._shouldBeInP2PMode = function() {
3170 3170
     const peers = this.getParticipants();
3171 3171
     const peerCount = peers.length;
3172
-    const hasBotPeer = peers.find(p => p._botType === 'poltergeist') !== undefined;
3172
+    const hasBotPeer = peers.find(p => p._botType === 'poltergeist' || p._features.has(FEATURE_JIGASI)) !== undefined;
3173 3173
     const shouldBeInP2P = peerCount === 1 && !hasBotPeer;
3174 3174
 
3175 3175
     logger.debug(`P2P? peerCount: ${peerCount}, hasBotPeer: ${hasBotPeer} => ${shouldBeInP2P}`);

Loading…
Cancel
Save