|
@@ -43,6 +43,8 @@ export default class MucConnectionPlugin extends ConnectionPluginListenable {
|
43
|
43
|
'http://jitsi.org/jitmeet/audio', 'iq', 'set', null, null);
|
44
|
44
|
this.connection.addHandler(this.onMuteVideo.bind(this),
|
45
|
45
|
'http://jitsi.org/jitmeet/video', 'iq', 'set', null, null);
|
|
46
|
+ this.connection.addHandler(this.onVisitors.bind(this),
|
|
47
|
+ 'jitsi:visitors', 'iq', 'set', null, null);
|
46
|
48
|
}
|
47
|
49
|
|
48
|
50
|
/**
|
|
@@ -204,4 +206,18 @@ export default class MucConnectionPlugin extends ConnectionPluginListenable {
|
204
|
206
|
|
205
|
207
|
return true;
|
206
|
208
|
}
|
|
209
|
+
|
|
210
|
+ /**
|
|
211
|
+ * A visitor IQ is received, pass it to the room.
|
|
212
|
+ * @param iq The received iq.
|
|
213
|
+ * @returns {boolean}
|
|
214
|
+ */
|
|
215
|
+ onVisitors(iq) {
|
|
216
|
+ const from = iq.getAttribute('from');
|
|
217
|
+ const room = this.rooms[Strophe.getBareJidFromJid(from)];
|
|
218
|
+
|
|
219
|
+ room?.onVisitorIQ(iq);
|
|
220
|
+
|
|
221
|
+ return true;
|
|
222
|
+ }
|
207
|
223
|
}
|