This commit is contained in:
Duduman Bogdan Vlad 2023-03-08 23:11:49 +00:00 committed by GitHub
commit 99f640d19a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import { pinParticipant } from '../../../base/participants/actions';
import {
getLocalParticipant,
getParticipantByIdOrUndefined,
getScreenshareParticipantIds,
hasRaisedHand,
isLocalScreenshareParticipant,
isScreenShareParticipant,
@ -1386,9 +1387,14 @@ function _mapStateToProps(state: IReduxState, ownProps: any): Object {
const participantId = isLocal ? getLocalParticipant(state)?.id : participantID;
const isActiveParticipant = activeParticipants.find((pId: string) => pId === participantId);
const participantCurrentlyOnLargeVideo = state['features/large-video']?.participantId === id;
const screenshareParticipantIds = getScreenshareParticipantIds(state);
const shouldDisplayTintBackground
= _currentLayout !== LAYOUTS.TILE_VIEW && filmstripType === FILMSTRIP_TYPE.MAIN
&& (isActiveParticipant || participantCurrentlyOnLargeVideo);
&& (isActiveParticipant || participantCurrentlyOnLargeVideo)
// skip showing tint for owner participants that are screensharing.
&& !screenshareParticipantIds.includes(id);
return {
_audioTrack,