Add proper (un)subscribe logic

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2023-01-10 21:00:30 +01:00
commit 72a02b1b01
No known key found for this signature in database
GPG key ID: D1D45825D60C24D2
2 changed files with 6 additions and 2 deletions

View file

@ -96,7 +96,11 @@ export function VideoTileContainer({
useEffect(() => {
item.callFeed?.setResolution(width, height);
}, [width, height, item]);
}, [width, height, item.callFeed]);
useEffect(() => {
item.callFeed?.setIsVisible(true);
}, [item.callFeed]);
return (
<>