|
@@ -127,6 +127,7 @@ export default class ChatRoom extends Listenable {
|
127
|
127
|
|
128
|
128
|
this.locked = false;
|
129
|
129
|
this.transcriptionStatus = JitsiTranscriptionStatus.OFF;
|
|
130
|
+ this.meetingId = null;
|
130
|
131
|
}
|
131
|
132
|
|
132
|
133
|
/* eslint-enable max-params */
|
|
@@ -277,6 +278,22 @@ export default class ChatRoom extends Listenable {
|
277
|
278
|
this.eventEmitter.emit(XMPPEvents.MUC_LOCK_CHANGED, locked);
|
278
|
279
|
this.locked = locked;
|
279
|
280
|
}
|
|
281
|
+
|
|
282
|
+ const meetingIdValEl
|
|
283
|
+ = $(result).find('>query>x[type="result"]>field[var="muc#roominfo_meetingId"]>value');
|
|
284
|
+
|
|
285
|
+ if (meetingIdValEl.length) {
|
|
286
|
+ const meetingId = meetingIdValEl.text();
|
|
287
|
+
|
|
288
|
+ if (this.meetingId !== meetingId) {
|
|
289
|
+ if (this.meetingId) {
|
|
290
|
+ logger.warn(`Meeting Id changed from:${this.meetingId} to:${meetingId}`);
|
|
291
|
+ }
|
|
292
|
+ this.meetingId = meetingId;
|
|
293
|
+ }
|
|
294
|
+ } else {
|
|
295
|
+ logger.trace('No meeting id from backend');
|
|
296
|
+ }
|
280
|
297
|
}, error => {
|
281
|
298
|
GlobalOnErrorHandler.callErrorHandler(error);
|
282
|
299
|
logger.error('Error getting room info: ', error);
|
|
@@ -478,6 +495,10 @@ export default class ChatRoom extends Listenable {
|
478
|
495
|
this.sendPresence();
|
479
|
496
|
|
480
|
497
|
this.eventEmitter.emit(XMPPEvents.MUC_JOINED);
|
|
498
|
+
|
|
499
|
+ // Now let's check the disco-info to retrieve the
|
|
500
|
+ // meeting Id if any
|
|
501
|
+ this.discoRoomInfo();
|
481
|
502
|
}
|
482
|
503
|
} else if (jid === undefined) {
|
483
|
504
|
logger.info('Ignoring member with undefined JID');
|
|
@@ -1363,6 +1384,13 @@ export default class ChatRoom extends Listenable {
|
1363
|
1384
|
return this.phonePin;
|
1364
|
1385
|
}
|
1365
|
1386
|
|
|
1387
|
+ /**
|
|
1388
|
+ * Returns the meeting unique Id if any came from backend.
|
|
1389
|
+ */
|
|
1390
|
+ getMeetingId() {
|
|
1391
|
+ return this.meetingId;
|
|
1392
|
+ }
|
|
1393
|
+
|
1366
|
1394
|
/**
|
1367
|
1395
|
* Mutes remote participant.
|
1368
|
1396
|
* @param jid of the participant
|