|
|
@@ -1054,6 +1054,22 @@ JitsiConference.prototype.getRole = function() {
|
|
1054
|
1054
|
return this.room.role;
|
|
1055
|
1055
|
};
|
|
1056
|
1056
|
|
|
|
1057
|
+/**
|
|
|
1058
|
+ * Returns whether or not the current conference has been joined as a hidden
|
|
|
1059
|
+ * user.
|
|
|
1060
|
+ *
|
|
|
1061
|
+ * @returns {boolean|null} True if hidden, false otherwise. Will return null if
|
|
|
1062
|
+ * no connection is active.
|
|
|
1063
|
+ */
|
|
|
1064
|
+JitsiConference.prototype.isHidden = function() {
|
|
|
1065
|
+ if (!this.connection) {
|
|
|
1066
|
+ return null;
|
|
|
1067
|
+ }
|
|
|
1068
|
+
|
|
|
1069
|
+ return Strophe.getDomainFromJid(this.connection.getJid())
|
|
|
1070
|
+ === this.options.config.hiddenDomain;
|
|
|
1071
|
+};
|
|
|
1072
|
+
|
|
1057
|
1073
|
/**
|
|
1058
|
1074
|
* Check if local user is moderator.
|
|
1059
|
1075
|
* @returns {boolean|null} true if local user is moderator, false otherwise. If
|
|
|
@@ -1312,6 +1328,7 @@ JitsiConference.prototype.onMemberJoined = function(
|
|
1312
|
1328
|
if (id === 'focus' || this.myUserId() === id) {
|
|
1313
|
1329
|
return;
|
|
1314
|
1330
|
}
|
|
|
1331
|
+
|
|
1315
|
1332
|
const participant
|
|
1316
|
1333
|
= new JitsiParticipant(jid, this, nick, isHidden, statsID, status);
|
|
1317
|
1334
|
|
|
|
@@ -1373,6 +1390,7 @@ JitsiConference.prototype.onMemberLeft = function(jid) {
|
|
1373
|
1390
|
if (id === 'focus' || this.myUserId() === id) {
|
|
1374
|
1391
|
return;
|
|
1375
|
1392
|
}
|
|
|
1393
|
+
|
|
1376
|
1394
|
const participant = this.participants[id];
|
|
1377
|
1395
|
|
|
1378
|
1396
|
delete this.participants[id];
|