Merge pull request #1114 from robintown/screenshare-tiles

Fix tiles having the wrong states during screensharing
This commit is contained in:
Robin 2023-06-14 12:01:23 -04:00 committed by GitHub
commit 89768de5e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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