hristoterezov 9 лет назад
Родитель
Сommit
0e6a1073c8
1 измененных файлов: 5 добавлений и 4 удалений
  1. 5
    4
      modules/xmpp/ChatRoom.js

+ 5
- 4
modules/xmpp/ChatRoom.js Просмотреть файл

289
         this.members[from] = member;
289
         this.members[from] = member;
290
         logger.log('entered', from, member);
290
         logger.log('entered', from, member);
291
         if (member.isFocus) {
291
         if (member.isFocus) {
292
-            this._initFocus(from);
292
+            this._initFocus(from, jid);
293
         } else {
293
         } else {
294
             this.eventEmitter.emit(
294
             this.eventEmitter.emit(
295
                 XMPPEvents.MUC_MEMBER_JOINED,
295
                 XMPPEvents.MUC_MEMBER_JOINED,
315
             // during that period of time the first presence from the focus
315
             // during that period of time the first presence from the focus
316
             // won't conain <item jid="focus..." />.
316
             // won't conain <item jid="focus..." />.
317
             memberOfThis.isFocus = true;
317
             memberOfThis.isFocus = true;
318
-            this._initFocus(from);
318
+            this._initFocus(from, jid);
319
         }
319
         }
320
 
320
 
321
         // store the new display name
321
         // store the new display name
379
 /**
379
 /**
380
  * Initialize some properties when the focus participant is verified.
380
  * Initialize some properties when the focus participant is verified.
381
  * @param from jid of the focus
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
     this.focusMucJid = from;
385
     this.focusMucJid = from;
385
     if(!this.recording) {
386
     if(!this.recording) {
386
         this.recording = new Recorder(this.options.recordingType,
387
         this.recording = new Recorder(this.options.recordingType,
389
         if(this.lastJibri)
390
         if(this.lastJibri)
390
             this.recording.handleJibriPresence(this.lastJibri);
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
 /**

Загрузка…
Отмена
Сохранить