From d14a901e46d38b9ffc00017822cf4dc6772a3c90 Mon Sep 17 00:00:00 2001 From: Kaustubh Kumar Date: Mon, 18 Dec 2023 11:52:06 +0530 Subject: [PATCH] Revert "fix: sort active speaker only on first page" --- .../src/Prebuilt/components/VideoLayouts/GridLayout.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/roomkit-react/src/Prebuilt/components/VideoLayouts/GridLayout.tsx b/packages/roomkit-react/src/Prebuilt/components/VideoLayouts/GridLayout.tsx index 8b4b0b770c..4211bdc671 100644 --- a/packages/roomkit-react/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/VideoLayouts/GridLayout.tsx @@ -80,7 +80,6 @@ export const GridLayout = ({ useEffect(() => { if (mainPage !== 0) { - peersSorter.stop(); return; } peersSorter.setPeersAndTilesPerPage({ @@ -88,9 +87,6 @@ export const GridLayout = ({ tilesPerPage: pageSize, }); peersSorter.onUpdate(setSortedPeers); - return () => { - peersSorter.stop(); - }; }, [mainPage, peersSorter, updatedPeers, pageSize]); if (peerSharing) {