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,9 +218,11 @@ MiddlewareRegistry.register(store => next => action => {
|
|||
|
||||
return result;
|
||||
}
|
||||
const { jitsiTrack } = action.track;
|
||||
|
||||
if (jitsiTrack.isMuted()
|
||||
// Mobile.
|
||||
const { jitsiTrack, local } = action.track;
|
||||
|
||||
if (local && jitsiTrack.isMuted()
|
||||
&& jitsiTrack.type === MEDIA_TYPE.VIDEO && jitsiTrack.videoType === VIDEO_TYPE.DESKTOP) {
|
||||
store.dispatch(toggleScreensharing(false));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue