|
|
@@ -320,9 +320,11 @@ function _setLastN(store, next, action) {
|
|
320
|
320
|
function _setReceiveVideoQuality({ dispatch, getState }, next, action) {
|
|
321
|
321
|
const { audioOnly, conference } = getState()['features/base/conference'];
|
|
322
|
322
|
|
|
323
|
|
- conference.setReceiverVideoConstraint(action.receiveVideoQuality);
|
|
324
|
|
- if (audioOnly) {
|
|
325
|
|
- dispatch(toggleAudioOnly());
|
|
|
323
|
+ if (conference) {
|
|
|
324
|
+ conference.setReceiverVideoConstraint(action.receiveVideoQuality);
|
|
|
325
|
+ if (audioOnly) {
|
|
|
326
|
+ dispatch(toggleAudioOnly());
|
|
|
327
|
+ }
|
|
326
|
328
|
}
|
|
327
|
329
|
|
|
328
|
330
|
return next(action);
|