|
@@ -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}`);
|