Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(thumbnail,filmstrip) - remove tint from owner screenshare participants (#12944)

Duduman Bogdan Vlad791055462570
diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsx
index 7f9948f082..32f0a6358c 100644
--- a/react/features/filmstrip/components/web/Thumbnail.tsx
+++ b/react/features/filmstrip/components/web/Thumbnail.tsx
@@ -22,6 +22,7 @@ import { pinParticipant } from '../../../base/participants/actions';
import {
getLocalParticipant,
getParticipantByIdOrUndefined,
+ getScreenshareParticipantIds,
hasRaisedHand,
isLocalScreenshareParticipant,
isScreenShareParticipant,
@@ -1337,9 +1338,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,