|
@@ -98,34 +98,32 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[
|
98
|
98
|
JitsiConferenceEvents.AUTH_STATUS_CHANGED,
|
99
|
99
|
(authEnabled: boolean, authLogin: string) => dispatch(authStatusChanged(authEnabled, authLogin)));
|
100
|
100
|
conference.on(
|
101
|
|
- JitsiConferenceEvents.CONFERENCE_FAILED, // @ts-ignore
|
102
|
|
- (...args: any[]) => dispatch(conferenceFailed(conference, ...args)));
|
|
101
|
+ JitsiConferenceEvents.CONFERENCE_FAILED,
|
|
102
|
+ (err: string, ...args: any[]) => dispatch(conferenceFailed(conference, err, ...args)));
|
103
|
103
|
conference.on(
|
104
|
|
- JitsiConferenceEvents.CONFERENCE_JOINED, // @ts-ignore
|
105
|
|
- (...args: any[]) => dispatch(conferenceJoined(conference, ...args)));
|
|
104
|
+ JitsiConferenceEvents.CONFERENCE_JOINED,
|
|
105
|
+ (..._args: any[]) => dispatch(conferenceJoined(conference)));
|
106
|
106
|
conference.on(
|
107
|
|
- JitsiConferenceEvents.CONFERENCE_UNIQUE_ID_SET, // @ts-ignore
|
108
|
|
- (...args: any[]) => dispatch(conferenceUniqueIdSet(conference, ...args)));
|
|
107
|
+ JitsiConferenceEvents.CONFERENCE_UNIQUE_ID_SET,
|
|
108
|
+ (..._args: any[]) => dispatch(conferenceUniqueIdSet(conference)));
|
109
|
109
|
conference.on(
|
110
|
|
- JitsiConferenceEvents.CONFERENCE_JOIN_IN_PROGRESS, // @ts-ignore
|
111
|
|
- (...args: any[]) => dispatch(conferenceJoinInProgress(conference, ...args)));
|
|
110
|
+ JitsiConferenceEvents.CONFERENCE_JOIN_IN_PROGRESS,
|
|
111
|
+ (..._args: any[]) => dispatch(conferenceJoinInProgress(conference)));
|
112
|
112
|
conference.on(
|
113
|
113
|
JitsiConferenceEvents.CONFERENCE_LEFT,
|
114
|
|
- (...args: any[]) => {
|
|
114
|
+ (..._args: any[]) => {
|
115
|
115
|
dispatch(conferenceTimestampChanged(0));
|
116
|
|
-
|
117
|
|
- // @ts-ignore
|
118
|
|
- dispatch(conferenceLeft(conference, ...args));
|
|
116
|
+ dispatch(conferenceLeft(conference));
|
119
|
117
|
});
|
120
|
|
- conference.on(JitsiConferenceEvents.SUBJECT_CHANGED, // @ts-ignore
|
121
|
|
- (...args: any[]) => dispatch(conferenceSubjectChanged(...args)));
|
|
118
|
+ conference.on(JitsiConferenceEvents.SUBJECT_CHANGED,
|
|
119
|
+ (subject: string) => dispatch(conferenceSubjectChanged(subject)));
|
122
|
120
|
|
123
|
|
- conference.on(JitsiConferenceEvents.CONFERENCE_CREATED_TIMESTAMP, // @ts-ignore
|
124
|
|
- (...args: any[]) => dispatch(conferenceTimestampChanged(...args)));
|
|
121
|
+ conference.on(JitsiConferenceEvents.CONFERENCE_CREATED_TIMESTAMP,
|
|
122
|
+ (timestamp: number) => dispatch(conferenceTimestampChanged(timestamp)));
|
125
|
123
|
|
126
|
124
|
conference.on(
|
127
|
|
- JitsiConferenceEvents.KICKED, // @ts-ignore
|
128
|
|
- (...args: any[]) => dispatch(kickedOut(conference, ...args)));
|
|
125
|
+ JitsiConferenceEvents.KICKED,
|
|
126
|
+ (participant: any) => dispatch(kickedOut(conference, participant)));
|
129
|
127
|
|
130
|
128
|
conference.on(
|
131
|
129
|
JitsiConferenceEvents.PARTICIPANT_KICKED,
|
|
@@ -136,8 +134,8 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[
|
136
|
134
|
(jitsiParticipant: IJitsiParticipant) => dispatch(participantSourcesUpdated(jitsiParticipant)));
|
137
|
135
|
|
138
|
136
|
conference.on(
|
139
|
|
- JitsiConferenceEvents.LOCK_STATE_CHANGED, // @ts-ignore
|
140
|
|
- (...args: any[]) => dispatch(lockStateChanged(conference, ...args)));
|
|
137
|
+ JitsiConferenceEvents.LOCK_STATE_CHANGED,
|
|
138
|
+ (locked: boolean) => dispatch(lockStateChanged(conference, locked)));
|
141
|
139
|
|
142
|
140
|
// Dispatches into features/base/media follow:
|
143
|
141
|
|
|
@@ -220,12 +218,12 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[
|
220
|
218
|
});
|
221
|
219
|
|
222
|
220
|
conference.on(
|
223
|
|
- JitsiConferenceEvents.ENDPOINT_MESSAGE_RECEIVED, // @ts-ignore
|
224
|
|
- (...args: any[]) => dispatch(endpointMessageReceived(...args)));
|
|
221
|
+ JitsiConferenceEvents.ENDPOINT_MESSAGE_RECEIVED,
|
|
222
|
+ (participant: Object, json: Object) => dispatch(endpointMessageReceived(participant, json)));
|
225
|
223
|
|
226
|
224
|
conference.on(
|
227
|
|
- JitsiConferenceEvents.NON_PARTICIPANT_MESSAGE_RECEIVED, // @ts-ignore
|
228
|
|
- (...args: any[]) => dispatch(nonParticipantMessageReceived(...args)));
|
|
225
|
+ JitsiConferenceEvents.NON_PARTICIPANT_MESSAGE_RECEIVED,
|
|
226
|
+ (id: string, json: Object) => dispatch(nonParticipantMessageReceived(id, json)));
|
229
|
227
|
|
230
|
228
|
conference.on(
|
231
|
229
|
JitsiConferenceEvents.USER_JOINED,
|
|
@@ -234,15 +232,15 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[
|
234
|
232
|
JitsiConferenceEvents.USER_LEFT,
|
235
|
233
|
(_id: string, user: any) => commonUserLeftHandling({ dispatch }, conference, user));
|
236
|
234
|
conference.on(
|
237
|
|
- JitsiConferenceEvents.USER_ROLE_CHANGED, // @ts-ignore
|
238
|
|
- (...args: any[]) => dispatch(participantRoleChanged(...args)));
|
|
235
|
+ JitsiConferenceEvents.USER_ROLE_CHANGED,
|
|
236
|
+ (id: string, role: string) => dispatch(participantRoleChanged(id, role)));
|
239
|
237
|
conference.on(
|
240
|
|
- JitsiConferenceEvents.USER_STATUS_CHANGED, // @ts-ignore
|
241
|
|
- (...args: any[]) => dispatch(participantPresenceChanged(...args)));
|
|
238
|
+ JitsiConferenceEvents.USER_STATUS_CHANGED,
|
|
239
|
+ (id: string, presence: string) => dispatch(participantPresenceChanged(id, presence)));
|
242
|
240
|
|
243
|
241
|
conference.on(
|
244
|
|
- JitsiE2ePingEvents.E2E_RTT_CHANGED, // @ts-ignore
|
245
|
|
- (...args: any[]) => dispatch(e2eRttChanged(...args)));
|
|
242
|
+ JitsiE2ePingEvents.E2E_RTT_CHANGED,
|
|
243
|
+ (participant: Object, rtt: number) => dispatch(e2eRttChanged(participant, rtt)));
|
246
|
244
|
|
247
|
245
|
conference.on(
|
248
|
246
|
JitsiConferenceEvents.BOT_TYPE_CHANGED,
|
|
@@ -633,7 +631,7 @@ export function endConference() {
|
633
|
631
|
* participant: JitsiParticipant
|
634
|
632
|
* }}
|
635
|
633
|
*/
|
636
|
|
-export function kickedOut(conference: Object, participant: Object) {
|
|
634
|
+export function kickedOut(conference: IJitsiConference, participant: Object) {
|
637
|
635
|
return {
|
638
|
636
|
type: KICKED_OUT,
|
639
|
637
|
conference,
|
|
@@ -673,7 +671,7 @@ export function leaveConference() {
|
673
|
671
|
* locked: boolean
|
674
|
672
|
* }}
|
675
|
673
|
*/
|
676
|
|
-export function lockStateChanged(conference: Object, locked: boolean) {
|
|
674
|
+export function lockStateChanged(conference: IJitsiConference, locked: boolean) {
|
677
|
675
|
return {
|
678
|
676
|
type: LOCK_STATE_CHANGED,
|
679
|
677
|
conference,
|
|
@@ -692,7 +690,7 @@ export function lockStateChanged(conference: Object, locked: boolean) {
|
692
|
690
|
* json: Object
|
693
|
691
|
* }}
|
694
|
692
|
*/
|
695
|
|
-export function nonParticipantMessageReceived(id: String, json: Object) {
|
|
693
|
+export function nonParticipantMessageReceived(id: string, json: Object) {
|
696
|
694
|
return {
|
697
|
695
|
type: NON_PARTICIPANT_MESSAGE_RECEIVED,
|
698
|
696
|
id,
|