|
@@ -540,12 +540,22 @@ JitsiConference.prototype.muteParticipant = function (id) {
|
540
|
540
|
this.room.muteParticipant(participant.getJid(), true);
|
541
|
541
|
};
|
542
|
542
|
|
543
|
|
-JitsiConference.prototype.onMemberJoined = function (jid, nick, role) {
|
|
543
|
+/**
|
|
544
|
+ * Indicates that a participant has joined the conference.
|
|
545
|
+ *
|
|
546
|
+ * @param jid the jid of the participant in the MUC
|
|
547
|
+ * @param nick the display name of the participant
|
|
548
|
+ * @param role the role of the participant in the MUC
|
|
549
|
+ * @param isHidden indicates if this is a hidden participant (sysem participant,
|
|
550
|
+ * for example a recorder).
|
|
551
|
+ */
|
|
552
|
+JitsiConference.prototype.onMemberJoined
|
|
553
|
+ = function (jid, nick, role, isHidden) {
|
544
|
554
|
var id = Strophe.getResourceFromJid(jid);
|
545
|
555
|
if (id === 'focus' || this.myUserId() === id) {
|
546
|
556
|
return;
|
547
|
557
|
}
|
548
|
|
- var participant = new JitsiParticipant(jid, this, nick);
|
|
558
|
+ var participant = new JitsiParticipant(jid, this, nick, isHidden);
|
549
|
559
|
participant._role = role;
|
550
|
560
|
this.participants[id] = participant;
|
551
|
561
|
this.eventEmitter.emit(JitsiConferenceEvents.USER_JOINED, id, participant);
|