|
|
|
@ -98,34 +98,32 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[ |
|
|
|
|
JitsiConferenceEvents.AUTH_STATUS_CHANGED, |
|
|
|
|
(authEnabled: boolean, authLogin: string) => dispatch(authStatusChanged(authEnabled, authLogin))); |
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_FAILED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(conferenceFailed(conference, ...args))); |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_FAILED, |
|
|
|
|
(err: string, ...args: any[]) => dispatch(conferenceFailed(conference, err, ...args))); |
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_JOINED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(conferenceJoined(conference, ...args))); |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_JOINED, |
|
|
|
|
(..._args: any[]) => dispatch(conferenceJoined(conference))); |
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_UNIQUE_ID_SET, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(conferenceUniqueIdSet(conference, ...args))); |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_UNIQUE_ID_SET, |
|
|
|
|
(..._args: any[]) => dispatch(conferenceUniqueIdSet(conference))); |
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_JOIN_IN_PROGRESS, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(conferenceJoinInProgress(conference, ...args))); |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_JOIN_IN_PROGRESS, |
|
|
|
|
(..._args: any[]) => dispatch(conferenceJoinInProgress(conference))); |
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.CONFERENCE_LEFT, |
|
|
|
|
(...args: any[]) => { |
|
|
|
|
(..._args: any[]) => { |
|
|
|
|
dispatch(conferenceTimestampChanged(0)); |
|
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
dispatch(conferenceLeft(conference, ...args)); |
|
|
|
|
dispatch(conferenceLeft(conference)); |
|
|
|
|
}); |
|
|
|
|
conference.on(JitsiConferenceEvents.SUBJECT_CHANGED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(conferenceSubjectChanged(...args))); |
|
|
|
|
conference.on(JitsiConferenceEvents.SUBJECT_CHANGED, |
|
|
|
|
(subject: string) => dispatch(conferenceSubjectChanged(subject))); |
|
|
|
|
|
|
|
|
|
conference.on(JitsiConferenceEvents.CONFERENCE_CREATED_TIMESTAMP, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(conferenceTimestampChanged(...args))); |
|
|
|
|
conference.on(JitsiConferenceEvents.CONFERENCE_CREATED_TIMESTAMP, |
|
|
|
|
(timestamp: number) => dispatch(conferenceTimestampChanged(timestamp))); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.KICKED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(kickedOut(conference, ...args))); |
|
|
|
|
JitsiConferenceEvents.KICKED, |
|
|
|
|
(participant: any) => dispatch(kickedOut(conference, participant))); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.PARTICIPANT_KICKED, |
|
|
|
@ -136,8 +134,8 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[ |
|
|
|
|
(jitsiParticipant: IJitsiParticipant) => dispatch(participantSourcesUpdated(jitsiParticipant))); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.LOCK_STATE_CHANGED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(lockStateChanged(conference, ...args))); |
|
|
|
|
JitsiConferenceEvents.LOCK_STATE_CHANGED, |
|
|
|
|
(locked: boolean) => dispatch(lockStateChanged(conference, locked))); |
|
|
|
|
|
|
|
|
|
// Dispatches into features/base/media follow:
|
|
|
|
|
|
|
|
|
@ -220,12 +218,12 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[ |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.ENDPOINT_MESSAGE_RECEIVED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(endpointMessageReceived(...args))); |
|
|
|
|
JitsiConferenceEvents.ENDPOINT_MESSAGE_RECEIVED, |
|
|
|
|
(participant: Object, json: Object) => dispatch(endpointMessageReceived(participant, json))); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.NON_PARTICIPANT_MESSAGE_RECEIVED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(nonParticipantMessageReceived(...args))); |
|
|
|
|
JitsiConferenceEvents.NON_PARTICIPANT_MESSAGE_RECEIVED, |
|
|
|
|
(id: string, json: Object) => dispatch(nonParticipantMessageReceived(id, json))); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.USER_JOINED, |
|
|
|
@ -234,15 +232,15 @@ function _addConferenceListeners(conference: IJitsiConference, dispatch: IStore[ |
|
|
|
|
JitsiConferenceEvents.USER_LEFT, |
|
|
|
|
(_id: string, user: any) => commonUserLeftHandling({ dispatch }, conference, user)); |
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.USER_ROLE_CHANGED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(participantRoleChanged(...args))); |
|
|
|
|
JitsiConferenceEvents.USER_ROLE_CHANGED, |
|
|
|
|
(id: string, role: string) => dispatch(participantRoleChanged(id, role))); |
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.USER_STATUS_CHANGED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(participantPresenceChanged(...args))); |
|
|
|
|
JitsiConferenceEvents.USER_STATUS_CHANGED, |
|
|
|
|
(id: string, presence: string) => dispatch(participantPresenceChanged(id, presence))); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiE2ePingEvents.E2E_RTT_CHANGED, // @ts-ignore
|
|
|
|
|
(...args: any[]) => dispatch(e2eRttChanged(...args))); |
|
|
|
|
JitsiE2ePingEvents.E2E_RTT_CHANGED, |
|
|
|
|
(participant: Object, rtt: number) => dispatch(e2eRttChanged(participant, rtt))); |
|
|
|
|
|
|
|
|
|
conference.on( |
|
|
|
|
JitsiConferenceEvents.BOT_TYPE_CHANGED, |
|
|
|
@ -633,7 +631,7 @@ export function endConference() { |
|
|
|
|
* participant: JitsiParticipant |
|
|
|
|
* }} |
|
|
|
|
*/ |
|
|
|
|
export function kickedOut(conference: Object, participant: Object) { |
|
|
|
|
export function kickedOut(conference: IJitsiConference, participant: Object) { |
|
|
|
|
return { |
|
|
|
|
type: KICKED_OUT, |
|
|
|
|
conference, |
|
|
|
@ -673,7 +671,7 @@ export function leaveConference() { |
|
|
|
|
* locked: boolean |
|
|
|
|
* }} |
|
|
|
|
*/ |
|
|
|
|
export function lockStateChanged(conference: Object, locked: boolean) { |
|
|
|
|
export function lockStateChanged(conference: IJitsiConference, locked: boolean) { |
|
|
|
|
return { |
|
|
|
|
type: LOCK_STATE_CHANGED, |
|
|
|
|
conference, |
|
|
|
@ -692,7 +690,7 @@ export function lockStateChanged(conference: Object, locked: boolean) { |
|
|
|
|
* json: Object |
|
|
|
|
* }} |
|
|
|
|
*/ |
|
|
|
|
export function nonParticipantMessageReceived(id: String, json: Object) { |
|
|
|
|
export function nonParticipantMessageReceived(id: string, json: Object) { |
|
|
|
|
return { |
|
|
|
|
type: NON_PARTICIPANT_MESSAGE_RECEIVED, |
|
|
|
|
id, |
|
|
|
|