️(frontend) render full-screen warning only for the local participant

Restrict the full-screen warning to the local participant tile.

Previously, mounting it on every participant tile meant that when
the local participant toggled their camera or microphone, the
warning re-evaluated and triggered a re-render on every tile.
This commit is contained in:
lebaudantoine
2026-07-16 00:03:15 +02:00
committed by aleb_the_flash
parent f21c4c91ed
commit b7be0eabb0
@@ -117,7 +117,9 @@ export const ParticipantTile: (
<div ref={ref} style={{ position: 'relative' }} {...interactiveProps}> <div ref={ref} style={{ position: 'relative' }} {...interactiveProps}>
<TrackRefContextIfNeeded trackRef={trackReference}> <TrackRefContextIfNeeded trackRef={trackReference}>
<ParticipantContextIfNeeded participant={trackReference.participant}> <ParticipantContextIfNeeded participant={trackReference.participant}>
<FullScreenShareWarning trackReference={trackReference} /> {trackReference.participant.isLocal && (
<FullScreenShareWarning trackReference={trackReference} />
)}
{children ?? ( {children ?? (
<> <>
{isTrackReference(trackReference) && {isTrackReference(trackReference) &&