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 {
return (
<>
{items.map((item) => (
<AudioForParticipant key={item.id} item={item} {...rest} />
))}
{items
.filter((item) => !item.isLocal)
.map((item) => (
<AudioForParticipant key={item.id} item={item} {...rest} />
))}
</>
);
}