|
@@ -135,7 +135,7 @@ ReducerRegistry.register('features/av-moderation', (state = initialState, action
|
135
|
135
|
}
|
136
|
136
|
|
137
|
137
|
if (videoModerationEnabled) {
|
138
|
|
- hasStateChanged = _updatePendingParticipant(MEDIA_TYPE.VIDEO, participant, state);
|
|
138
|
+ hasStateChanged = hasStateChanged || _updatePendingParticipant(MEDIA_TYPE.VIDEO, participant, state);
|
139
|
139
|
}
|
140
|
140
|
|
141
|
141
|
// If the state has changed we need to return a new object reference in order to trigger subscriber updates.
|
|
@@ -183,19 +183,19 @@ ReducerRegistry.register('features/av-moderation', (state = initialState, action
|
183
|
183
|
}
|
184
|
184
|
|
185
|
185
|
case DISMISS_PENDING_PARTICIPANT: {
|
186
|
|
- const { participant, mediaType } = action;
|
|
186
|
+ const { id, mediaType } = action;
|
187
|
187
|
|
188
|
188
|
if (mediaType === MEDIA_TYPE.AUDIO) {
|
189
|
189
|
return {
|
190
|
190
|
...state,
|
191
|
|
- pendingAudio: state.pendingAudio.filter(pending => pending.id !== participant.id)
|
|
191
|
+ pendingAudio: state.pendingAudio.filter(pending => pending.id !== id)
|
192
|
192
|
};
|
193
|
193
|
}
|
194
|
194
|
|
195
|
195
|
if (mediaType === MEDIA_TYPE.VIDEO) {
|
196
|
196
|
return {
|
197
|
197
|
...state,
|
198
|
|
- pendingVideo: state.pendingVideo.filter(pending => pending.id !== participant.id)
|
|
198
|
+ pendingVideo: state.pendingVideo.filter(pending => pending.id !== id)
|
199
|
199
|
};
|
200
|
200
|
}
|
201
|
201
|
|