|
|
@@ -28,6 +28,7 @@ import {
|
|
28
|
28
|
CONFERENCE_WILL_JOIN,
|
|
29
|
29
|
CONFERENCE_WILL_LEAVE,
|
|
30
|
30
|
DATA_CHANNEL_OPENED,
|
|
|
31
|
+ KICKED_OUT,
|
|
31
|
32
|
LOCK_STATE_CHANGED,
|
|
32
|
33
|
P2P_STATUS_CHANGED,
|
|
33
|
34
|
SET_AUDIO_ONLY,
|
|
|
@@ -78,6 +79,10 @@ function _addConferenceListeners(conference, dispatch) {
|
|
78
|
79
|
JitsiConferenceEvents.CONFERENCE_LEFT,
|
|
79
|
80
|
(...args) => dispatch(conferenceLeft(conference, ...args)));
|
|
80
|
81
|
|
|
|
82
|
+ conference.on(
|
|
|
83
|
+ JitsiConferenceEvents.KICKED,
|
|
|
84
|
+ () => dispatch(kickedOut(conference)));
|
|
|
85
|
+
|
|
81
|
86
|
conference.on(
|
|
82
|
87
|
JitsiConferenceEvents.LOCK_STATE_CHANGED,
|
|
83
|
88
|
(...args) => dispatch(lockStateChanged(conference, ...args)));
|
|
|
@@ -358,6 +363,23 @@ export function dataChannelOpened() {
|
|
358
|
363
|
};
|
|
359
|
364
|
}
|
|
360
|
365
|
|
|
|
366
|
+/**
|
|
|
367
|
+ * Signals that we've been kicked out of the conference.
|
|
|
368
|
+ *
|
|
|
369
|
+ * @param {JitsiConference} conference - The {@link JitsiConference} instance
|
|
|
370
|
+ * for which the event is being signaled.
|
|
|
371
|
+ * @returns {{
|
|
|
372
|
+ * type: KICKED_OUT,
|
|
|
373
|
+ * conference: JitsiConference
|
|
|
374
|
+ * }}
|
|
|
375
|
+ */
|
|
|
376
|
+export function kickedOut(conference: Object) {
|
|
|
377
|
+ return {
|
|
|
378
|
+ type: KICKED_OUT,
|
|
|
379
|
+ conference
|
|
|
380
|
+ };
|
|
|
381
|
+}
|
|
|
382
|
+
|
|
361
|
383
|
/**
|
|
362
|
384
|
* Signals that the lock state of a specific JitsiConference changed.
|
|
363
|
385
|
*
|