From 8176d60d96d9e135fbe4102eb47310be16ee12e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 12 Aug 2022 10:33:59 +0200 Subject: [PATCH] Show name in 1:1 calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/room/InCallView.tsx | 1 - src/video-grid/VideoTile.jsx | 17 ++++++----------- src/video-grid/VideoTileContainer.jsx | 4 ---- src/video-grid/useCallFeed.js | 3 --- 4 files changed, 6 insertions(+), 19 deletions(-) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 5ff3924..d9598f2 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -197,7 +197,6 @@ export function InCallView({ key={item.id} item={item} getAvatar={renderAvatar} - showName={items.length > 2 || item.focused} audioOutputDevice={audioOutput} audioContext={audioContext} audioDestination={audioDestination} diff --git a/src/video-grid/VideoTile.jsx b/src/video-grid/VideoTile.jsx index 0d58a7b..7001d76 100644 --- a/src/video-grid/VideoTile.jsx +++ b/src/video-grid/VideoTile.jsx @@ -29,12 +29,10 @@ export const VideoTile = forwardRef( isLocal, speaking, audioMuted, - noVideo, videoMuted, screenshare, avatar, name, - showName, mediaRef, onOptionsPress, showOptions, @@ -75,7 +73,7 @@ export const VideoTile = forwardRef( )} )} - {(videoMuted || noVideo) && ( + {videoMuted && ( <>
{avatar} @@ -86,15 +84,12 @@ export const VideoTile = forwardRef( {`${name} is presenting`}
) : ( - (showName || audioMuted || (videoMuted && !noVideo)) && ( -
- {audioMuted && !(videoMuted && !noVideo) && } - {videoMuted && !noVideo && } - {showName && {name}} -
- ) +
+ {audioMuted && !videoMuted && } + {videoMuted && } + {name} +
)} -