fix(rn,tracks) fix muting local screenshare when remote is muted

A "is local" check was missing.
This commit is contained in:
Saúl Ibarra Corretgé 2022-08-29 20:51:40 +02:00 committed by Saúl Ibarra Corretgé
parent 8fabba1679
commit fb9d35a991
1 changed files with 5 additions and 3 deletions

View File

@ -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));
}