fix(rn,tracks) fix muting local screenshare when remote is muted
A "is local" check was missing.
This commit is contained in:
parent
8fabba1679
commit
fb9d35a991
|
@ -218,10 +218,12 @@ MiddlewareRegistry.register(store => next => action => {
|
|||
|
||||
return result;
|
||||
}
|
||||
const { jitsiTrack } = action.track;
|
||||
|
||||
if (jitsiTrack.isMuted()
|
||||
&& jitsiTrack.type === MEDIA_TYPE.VIDEO && jitsiTrack.videoType === VIDEO_TYPE.DESKTOP) {
|
||||
// Mobile.
|
||||
const { jitsiTrack, local } = action.track;
|
||||
|
||||
if (local && jitsiTrack.isMuted()
|
||||
&& jitsiTrack.type === MEDIA_TYPE.VIDEO && jitsiTrack.videoType === VIDEO_TYPE.DESKTOP) {
|
||||
store.dispatch(toggleScreensharing(false));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue