|
@@ -9,6 +9,8 @@ import { NOTIFY_CAMERA_ERROR, NOTIFY_MIC_ERROR } from '../base/devices';
|
9
|
9
|
import { JitsiConferenceErrors } from '../base/lib-jitsi-meet';
|
10
|
10
|
import {
|
11
|
11
|
PARTICIPANT_KICKED,
|
|
12
|
+ PARTICIPANT_LEFT,
|
|
13
|
+ PARTICIPANT_JOINED,
|
12
|
14
|
SET_LOADABLE_AVATAR_URL,
|
13
|
15
|
getLocalParticipant,
|
14
|
16
|
getParticipantById
|
|
@@ -129,6 +131,27 @@ MiddlewareRegistry.register(store => next => action => {
|
129
|
131
|
{ id: action.kicker });
|
130
|
132
|
break;
|
131
|
133
|
|
|
134
|
+ case PARTICIPANT_LEFT:
|
|
135
|
+ APP.API.notifyUserLeft(action.participant.id);
|
|
136
|
+ break;
|
|
137
|
+
|
|
138
|
+ case PARTICIPANT_JOINED: {
|
|
139
|
+ const { participant } = action;
|
|
140
|
+ const { id, local, name } = participant;
|
|
141
|
+
|
|
142
|
+ // The version of external api outside of middleware did not emit
|
|
143
|
+ // the local participant being created.
|
|
144
|
+ if (!local) {
|
|
145
|
+ APP.API.notifyUserJoined(id, {
|
|
146
|
+ displayName: name,
|
|
147
|
+ formattedDisplayName: appendSuffix(
|
|
148
|
+ name || interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME)
|
|
149
|
+ });
|
|
150
|
+ }
|
|
151
|
+
|
|
152
|
+ break;
|
|
153
|
+ }
|
|
154
|
+
|
132
|
155
|
case SET_FILMSTRIP_VISIBLE:
|
133
|
156
|
APP.API.notifyFilmstripDisplayChanged(action.visible);
|
134
|
157
|
break;
|