mirror of
https://github.com/suitenumerique/meet.git
synced 2026-07-26 11:58:53 +00:00
⚡️(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:
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) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user