[RN] Fix setReceivedVideoQuality if we are not yet in a conference
It may happen that such action is fired while joining.
This commit is contained in:
parent
da0ae73d10
commit
c087e90099
|
@ -320,9 +320,11 @@ function _setLastN(store, next, action) {
|
|||
function _setReceiveVideoQuality({ dispatch, getState }, next, action) {
|
||||
const { audioOnly, conference } = getState()['features/base/conference'];
|
||||
|
||||
conference.setReceiverVideoConstraint(action.receiveVideoQuality);
|
||||
if (audioOnly) {
|
||||
dispatch(toggleAudioOnly());
|
||||
if (conference) {
|
||||
conference.setReceiverVideoConstraint(action.receiveVideoQuality);
|
||||
if (audioOnly) {
|
||||
dispatch(toggleAudioOnly());
|
||||
}
|
||||
}
|
||||
|
||||
return next(action);
|
||||
|
|
Loading…
Reference in New Issue