|
|
@@ -289,7 +289,7 @@ ChatRoom.prototype.onPresence = function (pres) {
|
|
289
|
289
|
this.members[from] = member;
|
|
290
|
290
|
logger.log('entered', from, member);
|
|
291
|
291
|
if (member.isFocus) {
|
|
292
|
|
- this._initFocus(from);
|
|
|
292
|
+ this._initFocus(from, jid);
|
|
293
|
293
|
} else {
|
|
294
|
294
|
this.eventEmitter.emit(
|
|
295
|
295
|
XMPPEvents.MUC_MEMBER_JOINED,
|
|
|
@@ -315,7 +315,7 @@ ChatRoom.prototype.onPresence = function (pres) {
|
|
315
|
315
|
// during that period of time the first presence from the focus
|
|
316
|
316
|
// won't conain <item jid="focus..." />.
|
|
317
|
317
|
memberOfThis.isFocus = true;
|
|
318
|
|
- this._initFocus(from);
|
|
|
318
|
+ this._initFocus(from, jid);
|
|
319
|
319
|
}
|
|
320
|
320
|
|
|
321
|
321
|
// store the new display name
|
|
|
@@ -379,8 +379,9 @@ ChatRoom.prototype.onPresence = function (pres) {
|
|
379
|
379
|
/**
|
|
380
|
380
|
* Initialize some properties when the focus participant is verified.
|
|
381
|
381
|
* @param from jid of the focus
|
|
|
382
|
+ * @param mucJid the jid of the focus in the muc
|
|
382
|
383
|
*/
|
|
383
|
|
-ChatRoom.prototype._initFocus = function (from) {
|
|
|
384
|
+ChatRoom.prototype._initFocus = function (from, mucJid) {
|
|
384
|
385
|
this.focusMucJid = from;
|
|
385
|
386
|
if(!this.recording) {
|
|
386
|
387
|
this.recording = new Recorder(this.options.recordingType,
|
|
|
@@ -389,7 +390,7 @@ ChatRoom.prototype._initFocus = function (from) {
|
|
389
|
390
|
if(this.lastJibri)
|
|
390
|
391
|
this.recording.handleJibriPresence(this.lastJibri);
|
|
391
|
392
|
}
|
|
392
|
|
- logger.info("Ignore focus: " + from + ", real JID: " + jid);
|
|
|
393
|
+ logger.info("Ignore focus: " + from + ", real JID: " + mucJid);
|
|
393
|
394
|
}
|
|
394
|
395
|
|
|
395
|
396
|
/**
|