Filter out local streams

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2022-08-15 15:05:30 +02:00
parent 0720005c93
commit b57ef84e66
No known key found for this signature in database
GPG key ID: D1D45825D60C24D2

View file

@ -87,9 +87,11 @@ export function AudioContainer({
}: AudioContainerProps): JSX.Element { }: AudioContainerProps): JSX.Element {
return ( return (
<> <>
{items.map((item) => ( {items
<AudioForParticipant key={item.id} item={item} {...rest} /> .filter((item) => !item.isLocal)
))} .map((item) => (
<AudioForParticipant key={item.id} item={item} {...rest} />
))}
</> </>
); );
} }