From b57ef84e663f823d973e0781976d75889cb1af9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 15 Aug 2022 15:05:30 +0200 Subject: [PATCH] Filter out local streams MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/video-grid/AudioContainer.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/video-grid/AudioContainer.tsx b/src/video-grid/AudioContainer.tsx index daeeff1..63a2fee 100644 --- a/src/video-grid/AudioContainer.tsx +++ b/src/video-grid/AudioContainer.tsx @@ -87,9 +87,11 @@ export function AudioContainer({ }: AudioContainerProps): JSX.Element { return ( <> - {items.map((item) => ( - - ))} + {items + .filter((item) => !item.isLocal) + .map((item) => ( + + ))} ); }