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
This commit is contained in:
Robin Townsend 2023-06-14 11:55:43 -04:00
parent 20c9c09258
commit 037495a635

View file

@ -101,14 +101,14 @@ export const VideoTile = forwardRef<HTMLDivElement, Props>(
ref={tileRef}
data-testid="videoTile"
>
{!sfuParticipant.isCameraEnabled && (
{content === TileContent.UserMedia && !sfuParticipant.isCameraEnabled && (
<>
<div className={styles.videoMutedOverlay} />
{getAvatar(data.member, targetWidth, targetHeight)}
</>
)}
{!false &&
(sfuParticipant.isScreenShareEnabled ? (
(content === TileContent.ScreenShare ? (
<div className={styles.presenterLabel}>
<span>{t("{{name}} is presenting", { name })}</span>
</div>