From 037495a63516391084332789e89809531b69e7a8 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Wed, 14 Jun 2023 11:55:43 -0400 Subject: [PATCH] Fix tiles having the wrong states during screensharing This fixes a couple bugs: 1. That muting your video while screensharing would cause the screensharing feed to be hidden as well 2. That while screensharing, your user media tile would incorrectly show the label that's supposed to appear only on the screenshare tile --- src/video-grid/VideoTile.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video-grid/VideoTile.tsx b/src/video-grid/VideoTile.tsx index beff7ec..c4ea475 100644 --- a/src/video-grid/VideoTile.tsx +++ b/src/video-grid/VideoTile.tsx @@ -101,14 +101,14 @@ export const VideoTile = forwardRef( ref={tileRef} data-testid="videoTile" > - {!sfuParticipant.isCameraEnabled && ( + {content === TileContent.UserMedia && !sfuParticipant.isCameraEnabled && ( <>
{getAvatar(data.member, targetWidth, targetHeight)} )} {!false && - (sfuParticipant.isScreenShareEnabled ? ( + (content === TileContent.ScreenShare ? (
{t("{{name}} is presenting", { name })}