|
@@ -1528,12 +1528,27 @@ JitsiConference.prototype.onMemberJoined = function(
|
1528
|
1528
|
|
1529
|
1529
|
this._updateFeatures(participant);
|
1530
|
1530
|
|
1531
|
|
- this._maybeStartOrStopP2P();
|
|
1531
|
+ // maybeStart only if we had finished joining as then we will have information for the number of participants
|
|
1532
|
+ if (this.isJoined()) {
|
|
1533
|
+ this._maybeStartOrStopP2P();
|
|
1534
|
+ }
|
|
1535
|
+
|
1532
|
1536
|
this._maybeSetSITimeout();
|
1533
|
1537
|
};
|
1534
|
1538
|
|
1535
|
1539
|
/* eslint-enable max-params */
|
1536
|
1540
|
|
|
1541
|
+/**
|
|
1542
|
+ * Get notified when we joined the room.
|
|
1543
|
+ *
|
|
1544
|
+ * FIXME This should NOT be exposed!
|
|
1545
|
+ *
|
|
1546
|
+ * @private
|
|
1547
|
+ */
|
|
1548
|
+JitsiConference.prototype._onMucJoined = function() {
|
|
1549
|
+ this._maybeStartOrStopP2P();
|
|
1550
|
+};
|
|
1551
|
+
|
1537
|
1552
|
/**
|
1538
|
1553
|
* Updates features for a participant.
|
1539
|
1554
|
* @param {JitsiParticipant} participant - The participant to query for features.
|