|
@@ -1352,14 +1352,7 @@ JitsiConference.prototype.onMemberJoined = function(
|
1352
|
1352
|
id,
|
1353
|
1353
|
participant);
|
1354
|
1354
|
|
1355
|
|
- this._updateFeatures(participant)
|
1356
|
|
- .catch(() =>
|
1357
|
|
-
|
1358
|
|
- // there was probably a mismatch, lets try one more time and give up
|
1359
|
|
- this._updateFeatures(participant)
|
1360
|
|
- .catch(error => {
|
1361
|
|
- logger.warn(`Failed to discover features of ${jid}`, error);
|
1362
|
|
- }));
|
|
1355
|
+ this._updateFeatures(participant);
|
1363
|
1356
|
|
1364
|
1357
|
this._maybeStartOrStopP2P();
|
1365
|
1358
|
this._maybeSetSITimeout();
|
|
@@ -1370,11 +1363,11 @@ JitsiConference.prototype.onMemberJoined = function(
|
1370
|
1363
|
/**
|
1371
|
1364
|
* Updates features for a participant.
|
1372
|
1365
|
* @param {JitsiParticipant} participant - The participant to query for features.
|
1373
|
|
- * @returns {Promise<Set<String> | never>}
|
|
1366
|
+ * @returns {void}
|
1374
|
1367
|
* @private
|
1375
|
1368
|
*/
|
1376
|
1369
|
JitsiConference.prototype._updateFeatures = function(participant) {
|
1377
|
|
- return this.xmpp.caps.getFeatures(participant.getJid())
|
|
1370
|
+ participant.getFeatures()
|
1378
|
1371
|
.then(features => {
|
1379
|
1372
|
participant._supportsDTMF = features.has('urn:xmpp:jingle:dtmf:0');
|
1380
|
1373
|
this.updateDTMFSupport();
|
|
@@ -1382,7 +1375,8 @@ JitsiConference.prototype._updateFeatures = function(participant) {
|
1382
|
1375
|
if (features.has('http://jitsi.org/protocol/jigasi')) {
|
1383
|
1376
|
participant.setProperty('features_jigasi', true);
|
1384
|
1377
|
}
|
1385
|
|
- });
|
|
1378
|
+ })
|
|
1379
|
+ .catch(() => false);
|
1386
|
1380
|
};
|
1387
|
1381
|
|
1388
|
1382
|
/**
|